{ "info": { "author": "sobolevn", "author_email": "mail@sobolevn.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "

\n \"django-split-settings\n

\n\n---\n\n[![wemake.services](https://img.shields.io/badge/%20-wemake.services-green.svg?label=%20&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](https://wemake.services)\n[![Build Status](https://travis-ci.org/wemake-services/docker-image-size-limit.svg?branch=master)](https://travis-ci.org/sobolevn/django-split-settings)\n[![Coverage](https://coveralls.io/repos/github/sobolevn/django-split-settings/badge.svg?branch=master)](https://coveralls.io/github/sobolevn/django-split-settings?branch=master)\n[![Docs](https://readthedocs.org/projects/django-split-settings/badge/?version=latest)](http://django-split-settings.readthedocs.io/en/latest/?badge=latest)\n[![Python Version](https://img.shields.io/pypi/pyversions/django-split-settings.svg)](https://pypi.org/project/django-split-settings/)\n[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/docker-image-size-limit)\n\n\n\nOrganize Django settings into multiple files and directories. Easily\noverride and modify settings. Use wildcards in settings file paths\nand mark settings files as optional.\n\nRead [this blog post](https://sobolevn.me/2017/04/managing-djangos-settings)\nfor more information.\nAlso, check this [example project](https://github.com/wemake-services/wemake-django-template).\n\n\n## Requirements\n\nWhile this package will most likely work with the most versions of `django`, we do not officially support any versions except the latest release and the current LTS version, which are `1.11` and `2.2` right now.\n\nThis package has no dependencies itself.\n\nIn case you need older `python` / `django` versions support,\nthen consider using older versions.\n\n\n## Installation\n\n```bash\npip install django-split-settings\n```\n\n\n## Usage\n\nReplace your existing `settings.py` with a list of components that\nmake up your Django settings. Preferably create a settings package\nthat contains all the files.\n\nHere's a minimal example:\n\n```python\nfrom split_settings.tools import optional, include\n\ninclude(\n 'components/base.py',\n 'components/database.py',\n optional('local_settings.py')\n)\n```\n\nIn the example, the files `base.py` and `database.py` are included\nin that order from the subdirectory called `components/`.\n`local_settings.py` in the same directory is included if it exists.\n\n**Note:** The local context is passed on to each file, so each\nfollowing file can access and modify the settings declared in the\nprevious files.\n\nWe also made a in-depth [tutorial](https://sobolevn.me/2017/04/managing-djangos-settings).\n\n\n## Tips and tricks\n\nYou can use wildcards in file paths:\n\n```python\ninclude('components/my_app/*.py')\n```\n\nNote that files are included in the order that `glob` returns them,\nprobably in the same order as what `ls -U` would list them. The\nfiles are NOT in alphabetical order.\n\nYou can modify common settings in environment settings simply importing them\n\n```python\n# local_settings.py\nfrom components.base import INSTALLED_APPS\n\nINSTALLED_APPS += (\n 'raven.contrib.django.raven_compat',\n)\n```\n\n\n## Do you want to contribute?\n\nRead the [CONTRIBUTING.md](https://github.com/sobolevn/django-split-settings/blob/master/CONTRIBUTING.md) file.\n\n\n## Version history\n\nSee [CHANGELOG.md](https://github.com/sobolevn/django-split-settings/blob/master/CHANGELOG.md) file.\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://django-split-settings.readthedocs.io", "keywords": "django,settings,configuration,config", "license": "BSD-2-Clause", "maintainer": "sobolevn", "maintainer_email": "mail@sobolevn.me", "name": "split-settings", "package_url": "https://pypi.org/project/split-settings/", "platform": "", "project_url": "https://pypi.org/project/split-settings/", "project_urls": { "Homepage": "https://django-split-settings.readthedocs.io", "Repository": "https://github.com/sobolevn/django-split-settings" }, "release_url": "https://pypi.org/project/split-settings/1.0.0/", "requires_dist": null, "requires_python": ">=3.6,<4.0", "summary": "Organize Django settings into multiple files and directories. Easily override and modify settings. Use wildcards and optional settings files.", "version": "1.0.0" }, "last_serial": 5832821, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "54799321d1c1998196f233727d43f3bb", "sha256": "78904bbbaaaa400d9a5ebc4ac316cbd322f8042ee70ecbcfb60b5ddd8adcd2d2" }, "downloads": -1, "filename": "split_settings-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "54799321d1c1998196f233727d43f3bb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 8895, "upload_time": "2019-09-15T19:09:51", "url": "https://files.pythonhosted.org/packages/76/14/39ec80dc35eaf7f90a65c0742f17a82dbe7b1a5b4c28d64cd1b7b09ff80e/split_settings-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc4aa1c14c579bb92e321acf0a5fc5f3", "sha256": "01bf629db64b4fab5d7e78fe3064fee08761f97d382fd38bea87c9772c5ab247" }, "downloads": -1, "filename": "split_settings-1.0.0.tar.gz", "has_sig": false, "md5_digest": "dc4aa1c14c579bb92e321acf0a5fc5f3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 5653, "upload_time": "2019-09-15T19:09:54", "url": "https://files.pythonhosted.org/packages/81/a9/1b67949e3decd95849f60e34bbad1b5eeeb2cbdc2254eab981cd47935681/split_settings-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54799321d1c1998196f233727d43f3bb", "sha256": "78904bbbaaaa400d9a5ebc4ac316cbd322f8042ee70ecbcfb60b5ddd8adcd2d2" }, "downloads": -1, "filename": "split_settings-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "54799321d1c1998196f233727d43f3bb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 8895, "upload_time": "2019-09-15T19:09:51", "url": "https://files.pythonhosted.org/packages/76/14/39ec80dc35eaf7f90a65c0742f17a82dbe7b1a5b4c28d64cd1b7b09ff80e/split_settings-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc4aa1c14c579bb92e321acf0a5fc5f3", "sha256": "01bf629db64b4fab5d7e78fe3064fee08761f97d382fd38bea87c9772c5ab247" }, "downloads": -1, "filename": "split_settings-1.0.0.tar.gz", "has_sig": false, "md5_digest": "dc4aa1c14c579bb92e321acf0a5fc5f3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 5653, "upload_time": "2019-09-15T19:09:54", "url": "https://files.pythonhosted.org/packages/81/a9/1b67949e3decd95849f60e34bbad1b5eeeb2cbdc2254eab981cd47935681/split_settings-1.0.0.tar.gz" } ] }