{ "info": { "author": "MickBad", "author_email": "prog@mickbad.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: French", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "# django-extended-settings\nApps for Django to extend global settings with additional files\n\nInitialize other configuration settings for django project\nOther configurations must be set in /path/to/project/djangoproject/settings.d/*_settings.py\n\n Project/\n |_ apps1/\n |_ ...\n |_ project/\n |_ settings.py\n |_ urls.py\n |_ ...\n |_ settings.d/\n |_ one_settings.py\n |_ second_settings.py\n\nThe current version of the Django Extended Settings is 1.0.0. It works on Django \u2265 2.0. (not tested other)\n\n### Installation\n\n#### Getting the code\n\nThe recommended way to install the Django Extended Settings is via pip or pipenv:\n\n```bash\n$ pip install django-extended-settings\n```\n\n#### Prerequisites\n\nMake sure add ```extended_settings``` to your ```INSTALLED_APPS``` setting:\n\n```python\nINSTALLED_APPS = [\n # ...\n 'extended_settings',\n # ...\n]\n```\n\n#### Play settings into your project\n\nCreate sub directory ```settings.d/``` into django project directory and put your configuration into independant files with this patterns ```*_settings.py```\n\n__sample__ : ```/path/to/project/djangopython/settings.d/production_settings.py```\n\n\n#### Play database settings\n\nYou can add some settings in database\n\n```$ ./manage.py migrate ```\n\nIn your python files, you can create settings (in command for example) like this\n\n```python\nfrom extended_settings.models import ExtentedSettings\n\no = ExtentedSettings()\no.name = \"My home page location\"\no.key = \"hostname\"\no.value = \"http://localhost:8000\"\no.save()\n```\n\nTo retrieve settings in your views, ...\n\n```python\nfrom extended_settings.models import ExtentedSettings\n\nmy_var = ExtentedSettings.get(\"hostname\")\nmy_var = ExtentedSettings.get(\"hostname\", 'default value')\n\nmy_int = ExtentedSettings.get_int(\"my-int\")\nmy_bool = ExtentedSettings.get_boolean(\"my-bool\") # True = yes, y, true, 1, ...\n```\n\n\n### Misc\n\nThe Django Extended Settings is released under the BSD license, like Django itself. If you like it, please consider contributing!\n\nThe Django Extended Settings was originally created by Mickael Badet in September 2018.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://pypi.org/project/django-extended-settings/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mickbad/django-extended-settings", "keywords": "django development tools settings", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-extended-settings", "package_url": "https://pypi.org/project/django-extended-settings/", "platform": "", "project_url": "https://pypi.org/project/django-extended-settings/", "project_urls": { "Download": "https://pypi.org/project/django-extended-settings/", "Homepage": "https://github.com/mickbad/django-extended-settings" }, "release_url": "https://pypi.org/project/django-extended-settings/1.1.0/", "requires_dist": null, "requires_python": ">=3.5", "summary": "Extended Settings for Django Project with settings.d/", "version": "1.1.0" }, "last_serial": 5507886, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "4065922141376833f2fc400ec267dee0", "sha256": "2b3e03a9ec3d56d31516dcc68cffe4055291b1dd006327548230cfe06ad3ed8c" }, "downloads": -1, "filename": "django-extended-settings-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4065922141376833f2fc400ec267dee0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3283, "upload_time": "2018-09-27T18:42:23", "url": "https://files.pythonhosted.org/packages/09/75/255fa45e52b8738a18a9ff48c4e35c5ff8ee27dd93b885dd8116032ff701/django-extended-settings-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "4a048f9e6946c3695ae24a4d974a4b9f", "sha256": "2947196ceb530387e4a4abade0527bb192e5424fe0aa7deff795a7650628b8c7" }, "downloads": -1, "filename": "django-extended-settings-1.0.2.tar.gz", "has_sig": false, "md5_digest": "4a048f9e6946c3695ae24a4d974a4b9f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3423, "upload_time": "2018-10-12T18:40:32", "url": "https://files.pythonhosted.org/packages/64/fb/43cd38cd467d5788f37fe2a1192d8ecd6306973424bf4a1f9814105abf69/django-extended-settings-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "d9e23978d4079ae7208bc4899b310d4a", "sha256": "880b9f471a6b26ea75aeea6646416855fcaa04a18a945c9a59c3b2947be74785" }, "downloads": -1, "filename": "django-extended-settings-1.1.0.tar.gz", "has_sig": false, "md5_digest": "d9e23978d4079ae7208bc4899b310d4a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 5343, "upload_time": "2019-07-09T16:01:55", "url": "https://files.pythonhosted.org/packages/99/2e/b9d25e03f6c97264f1d354b2baed50ecc6e2f23709dfc3770d27c9ef45fa/django-extended-settings-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d9e23978d4079ae7208bc4899b310d4a", "sha256": "880b9f471a6b26ea75aeea6646416855fcaa04a18a945c9a59c3b2947be74785" }, "downloads": -1, "filename": "django-extended-settings-1.1.0.tar.gz", "has_sig": false, "md5_digest": "d9e23978d4079ae7208bc4899b310d4a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 5343, "upload_time": "2019-07-09T16:01:55", "url": "https://files.pythonhosted.org/packages/99/2e/b9d25e03f6c97264f1d354b2baed50ecc6e2f23709dfc3770d27c9ef45fa/django-extended-settings-1.1.0.tar.gz" } ] }