{ "info": { "author": "Gregory N. Schmit", "author_email": "me@gregschmit.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "Settings Model\n==============\n\n.. inclusion-marker-do-not-remove\n\n.. image:: https://travis-ci.org/gregschmit/django-settings-model.svg?branch=master\n :alt: TravisCI\n :target: https://travis-ci.org/gregschmit/django-settings-model\n\n.. image:: https://img.shields.io/pypi/v/django-settings-model\n :alt: PyPI\n :target: https://pypi.org/project/django-settings-model/\n\n.. image:: https://coveralls.io/repos/github/gregschmit/django-settings-model/badge.svg?branch=master\n :alt: Coveralls\n :target: https://coveralls.io/github/gregschmit/django-settings-model?branch=master\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :alt: Code Style\n :target: https://github.com/ambv/black\n\nDocumentation: https://django-settings-model.readthedocs.io\n\nSource: https://github.com/gregschmit/django-settings-model\n\nPyPI: https://pypi.org/project/django-settings-model/\n\nThis Django reusable app implements a base ``SettingsModel`` class to allow settings to\nbe edited and saved in the database. For any particular project, you probably want to\ncustomize which settings are exposed, so while there is a ``Settings`` example\nimplementation that you can use, the abstract model ``SettingsModel`` can be used to\nconstruct your own settings model(s), and things like webserver restarts are handled in\nthe abstract model class.\n\n**The Problem**: Sometimes you want to build an app that can run on an arbitrary piece\nof equipment, and things like timezone, hostname, or SMTP settings may need to be\neditable from the UI.\n\n**The Solution**: This app implements a base ``SettingsModel`` class that allows you to\nexpose settings to a user interface via the database.\n\n\nHow to Use\n==========\n\n.. code-block:: shell\n\n $ pip install django-settings-model\n\nYou can either create your own custom Settings model, inheriting from\n``settings_model.models.SettingsModel``. An example implementation is provided in the\n``settings_model.models.Settings`` model. If you include ``settings_model`` in your\n``INSTALLED_APPS``, then that model will be migrated to your database when you run\n``python3 manage.py migrate`` and you will see the settings in the Admin site.\n\n\nSettings\n--------\n\n- ``SETTINGS_MODEL_REBOOT_FILES`` (default ``[]``): This is a list of files that should\n be touched when the settings model is saved to signal to the webserver to update. If\n it is falsy, then the system will try to find and touch the file\n ``BASE_DIR/manage.py`` and the ``wsgi.py`` file defined by ``WSGI_APPLICATION``.\n\n\nContributing\n============\n\nSubmit a pull request if you would like to contribute. You must only contribute code\nthat you have authored or otherwise hold the copyright to, and you must make any\ncontributions to this project available under the MIT license.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gregschmit/django-settings-model", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-settings-model", "package_url": "https://pypi.org/project/django-settings-model/", "platform": "", "project_url": "https://pypi.org/project/django-settings-model/", "project_urls": { "Homepage": "https://github.com/gregschmit/django-settings-model" }, "release_url": "https://pypi.org/project/django-settings-model/0.2.0/", "requires_dist": [ "Django (>=2)", "pytz" ], "requires_python": "", "summary": "A re-useable Django app for building models that modify Django settings.", "version": "0.2.0" }, "last_serial": 5998836, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "935322d5c4fa1be04793a3417f6d9719", "sha256": "757c2067c708a6ea9565c332e175925144ab61bc10482ea6dd30639ea51c7460" }, "downloads": -1, "filename": "django_settings_model-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "935322d5c4fa1be04793a3417f6d9719", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14812, "upload_time": "2019-10-19T05:37:32", "url": "https://files.pythonhosted.org/packages/aa/21/4b9ac8d1f5b3c24b105b14d88ff42dcbc5a2c0ec4c6364e636462319a1e2/django_settings_model-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f36286a0f83a9b4c7c24a05aa56f852", "sha256": "3023d23e7bd39b5e2ddd4d2e96ec990e6a3506da75c8cd34c08aa83a58de60b7" }, "downloads": -1, "filename": "django-settings-model-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7f36286a0f83a9b4c7c24a05aa56f852", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12097, "upload_time": "2019-10-19T05:37:35", "url": "https://files.pythonhosted.org/packages/07/39/7a6cd6c8df3dd91b16f09c20603afd57d16e601e38b1b499aab2d6e6642d/django-settings-model-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "488f88c428680eea132cde256da692ac", "sha256": "ce7a1f2360cd402a570a2620b159937bcf52cde582f06c3bb6242ebce421a1bb" }, "downloads": -1, "filename": "django_settings_model-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "488f88c428680eea132cde256da692ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15010, "upload_time": "2019-10-19T05:57:40", "url": "https://files.pythonhosted.org/packages/b6/c4/45af6dd89af86d7fe51f4227b066155c991145ebf27b94c78be5a58d89c6/django_settings_model-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf71cab67f6e3cda49b3588222dd818b", "sha256": "fd6daf85b566104b7abad5f742a96cda2a12f9a857acacae12566eb54bfadc24" }, "downloads": -1, "filename": "django-settings-model-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cf71cab67f6e3cda49b3588222dd818b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12314, "upload_time": "2019-10-19T05:57:42", "url": "https://files.pythonhosted.org/packages/88/7c/1b373c362246edc0bc50b21ad1f5b42466802d6eed5ea114e572c87002dc/django-settings-model-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "488f88c428680eea132cde256da692ac", "sha256": "ce7a1f2360cd402a570a2620b159937bcf52cde582f06c3bb6242ebce421a1bb" }, "downloads": -1, "filename": "django_settings_model-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "488f88c428680eea132cde256da692ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15010, "upload_time": "2019-10-19T05:57:40", "url": "https://files.pythonhosted.org/packages/b6/c4/45af6dd89af86d7fe51f4227b066155c991145ebf27b94c78be5a58d89c6/django_settings_model-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf71cab67f6e3cda49b3588222dd818b", "sha256": "fd6daf85b566104b7abad5f742a96cda2a12f9a857acacae12566eb54bfadc24" }, "downloads": -1, "filename": "django-settings-model-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cf71cab67f6e3cda49b3588222dd818b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12314, "upload_time": "2019-10-19T05:57:42", "url": "https://files.pythonhosted.org/packages/88/7c/1b373c362246edc0bc50b21ad1f5b42466802d6eed5ea114e572c87002dc/django-settings-model-0.2.0.tar.gz" } ] }