{ "info": { "author": "Michael England", "author_email": "michael.k.england@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-setty\n==============\n\nDjango-Setty allows you to dynamically change settings inside the Django Admin Console.\nThe app provides both a database and a cache backend for storing and retrieving your settings.\n\n[![Build Status](https://travis-ci.org/mikeengland/django-setty.svg?branch=master)](https://travis-ci.org/mikeengland/django-setty)\n[![Coverage Status](https://coveralls.io/repos/github/mikeengland/django-setty/badge.svg?branch=master)](https://coveralls.io/github/mikeengland/django-setty?branch=master)\n\nRequirements\n------------\n* Python 3.6+\n* Django 1.11+\n\nContinuous integration currently tests Django v1.11, v2.0, v2.1 and master.\n\nInstallation\n------------\n```\npip install setty\n```\n\nDjango Configuration\n--------------------\nAdd `setty` to the list of INSTALLED_APPS in your Django settings:\n\n```\nINSTALLED_APPS = [\n ...\n 'setty'\n]\n```\n\nCreate the Setty database table by running\n\n```\npython manage.py migrate\n```\n\nSpecify the backend to use using the `SETTY_BACKEND` setting. \nThe valid backend values are `'DatabaseBackend'` and `'CacheBackend'`.\n\n`'DatabaseBackend'` always accesses the database when retrieving settings.\n\n`'CacheBackend'` only accesses the database if the item is not in the cache, and caches the value once retrieved.\n\nDefine the length of time settings should be cached for using the SETTY_CACHE_TTL setting. The default cache TTL is\none hour.\n\n```python\nSETTY_BACKEND = 'CacheBackend'\nSETTY_CACHE_TTL = 60 # 60 seconds\n```\n\nUsage Examples\n--------------\nOpen the Django admin console at /admin and open `Setty Settings`.\nHere, you will see the list of all settings defined in Setty.\n\nTo add a new setting, click the `add` button. \n\nEnter the setting name, type (String, Integer, Float, Boolean, List, Dictionary)\nand the value. Note, the List and Dict data type expect the data to be in the JSON format e.g.\n`{\"a\": 1, \"b\": 2}` and `[1, 2, 3]`.\n\nOnce settings have been created, you will be able to access these in your code.\n```python\nfrom setty import config\n\nassert config.my_integer == 10\n\n```\nIf the setting does not exist in the database, the value defined in the setting `SETTY_NOT_FOUND_VALUE` will be used.\nIf this is not set, `None` will be returned.\n\nSetty can be used inside Django templates by adding 'setty.context_processors.setty_settings' to the\n`TEMPLATE_CONTEXT_PROCESSORS` setting and accessing it via the `setty` key.\n\nThe value of a setting can also be updated by using the syntax:\n```python\nfrom setty import config\n\nconfig.my_integer = 100\n\n```\nNote: Only settings that already exist in the database can be updated. New settings cannot be added this way.\n\nLoading all settings into the Cache\n------------------------------------\nIf you use the `CacheBackend` backend, you can easily load all settings into the Cache. This is useful if you want to\ncache all settings when you start up your app.\n\n```python\nfrom setty.backend import CacheBackend\nCacheBackend().load_all_settings_into_cache()\n```\n\nSimilar Projects\n-----------------\n* This project was inspired by Django Constance\nhttps://github.com/jazzband/django-constance\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mikeengland/django-setty", "keywords": "django dynamic live settings setty django-setty admin cache", "license": "Apache License Version 2.0", "maintainer": "", "maintainer_email": "", "name": "django-setty", "package_url": "https://pypi.org/project/django-setty/", "platform": "", "project_url": "https://pypi.org/project/django-setty/", "project_urls": { "Homepage": "https://github.com/mikeengland/django-setty" }, "release_url": "https://pypi.org/project/django-setty/3.1.0/", "requires_dist": [ "django-picklefield", "python-memcached" ], "requires_python": "", "summary": "Django app allowing users to configure settings dynamically in the Admin screen", "version": "3.1.0" }, "last_serial": 5111143, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5ab458cd19a3037bf0e2c24705dc6413", "sha256": "0671f3d7cb48666b8621e59b87be0e8aa5495791fa0ca7508a3cc31dffc9a85b" }, "downloads": -1, "filename": "django-setty-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5ab458cd19a3037bf0e2c24705dc6413", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4418, "upload_time": "2018-10-25T19:02:55", "url": "https://files.pythonhosted.org/packages/f2/07/16af24bfa96b0b56f1d880dc61af0cc292b70dbb7a972ad4fa98feaa8d60/django-setty-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "792554388654bcccaa148a34ca13c6e4", "sha256": "46986b929f19135327e85ddd5313518b9289a3e817d5df88edd2f5378d4955b3" }, "downloads": -1, "filename": "django-setty-0.0.2.tar.gz", "has_sig": false, "md5_digest": "792554388654bcccaa148a34ca13c6e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4385, "upload_time": "2018-10-25T19:16:09", "url": "https://files.pythonhosted.org/packages/1c/58/fdedae3212441a764ed26ca1df59975e51eb5b31edfde67008452280fbf8/django-setty-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a03c9b278f6a37697dfdec5a105d5515", "sha256": "52bcf30a65197780cd547b5534360f755b22de0b6278f6c64c66ea7c470226a7" }, "downloads": -1, "filename": "django-setty-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a03c9b278f6a37697dfdec5a105d5515", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4724, "upload_time": "2018-10-25T19:27:06", "url": "https://files.pythonhosted.org/packages/8f/c2/1b9a76149b9fa5366189a625402d5005888c42522f61a96581f27b7031dd/django-setty-0.0.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "98359053bd8ef938cdbc798293baa792", "sha256": "21cc16558f880a724d8feb5345fc07476b4fc55c405927b842a2c98a007df473" }, "downloads": -1, "filename": "django-setty-1.0.0.tar.gz", "has_sig": false, "md5_digest": "98359053bd8ef938cdbc798293baa792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5727, "upload_time": "2018-11-04T17:00:16", "url": "https://files.pythonhosted.org/packages/1c/87/016236f36e05e6a17a4c534499773d3b6d0c151bd6ab4288284313fa6fb4/django-setty-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "d43e20748e025b213dd997d093ce68f4", "sha256": "47c374aaa09fbdd0bab020f20417a3c199a6bae385dc4f1054b2aceef213cdca" }, "downloads": -1, "filename": "django_setty-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d43e20748e025b213dd997d093ce68f4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5516, "upload_time": "2018-11-04T17:05:21", "url": "https://files.pythonhosted.org/packages/6d/10/c85870ccbbee32debdc720325dcd2e5bdc4286afc8c7edbc4cc4fd732a1d/django_setty-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c78dc2d89bda8a03cc1813bd48b8479", "sha256": "8028f36b106ab40558af02f41c1ee6d045bf5339d417b98e2e8039df0e269180" }, "downloads": -1, "filename": "django-setty-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4c78dc2d89bda8a03cc1813bd48b8479", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5414, "upload_time": "2018-11-04T17:05:22", "url": "https://files.pythonhosted.org/packages/61/50/5a3f9bbf01a07a178af2747e7e1d2f4b2e277d576c7fc12235985266102e/django-setty-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "98a7c09ca2aaa755406c3a9b49d7670a", "sha256": "2106372949b9bbb3bba91883d820ce21fc10f0d5719eae0ada692a9f972fef65" }, "downloads": -1, "filename": "django_setty-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "98a7c09ca2aaa755406c3a9b49d7670a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6451, "upload_time": "2018-11-04T17:07:01", "url": "https://files.pythonhosted.org/packages/3b/87/33926b5550080ade4e89b2cd787107338a27fa12c8926a7c5e302e1a3ca7/django_setty-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a6502164fef46153a4e31b68db44e75e", "sha256": "efff2a8b9d3f5a411642ef91e29356cbc4aa00fb0d4c205f0fbc9e8ecdedf900" }, "downloads": -1, "filename": "django-setty-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a6502164fef46153a4e31b68db44e75e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5660, "upload_time": "2018-11-04T17:07:03", "url": "https://files.pythonhosted.org/packages/be/9b/72a293aff56584bb4766c818d4645e8c3425a4f2f5937dbc3934953fc997/django-setty-1.0.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "6ef929b0f18b8cae2868646891ab67b0", "sha256": "902e2568f90ed15ef8e7bca36bf5c87e0665601714774123030876dcdf3e4d5c" }, "downloads": -1, "filename": "django_setty-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6ef929b0f18b8cae2868646891ab67b0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6652, "upload_time": "2019-02-06T20:36:35", "url": "https://files.pythonhosted.org/packages/77/2f/bd26e0c8836e315af578a4f051e3051e4bdc3cfcab2159499233948ebdd7/django_setty-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f81a7fb65b9d4a00cd0a6519e287c75", "sha256": "94b6aa8927979e2e014be1c9728f467966a211f8f2d510c7b39a4d644d098cd3" }, "downloads": -1, "filename": "django-setty-2.0.0.tar.gz", "has_sig": false, "md5_digest": "1f81a7fb65b9d4a00cd0a6519e287c75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5851, "upload_time": "2019-02-06T20:36:38", "url": "https://files.pythonhosted.org/packages/03/af/138f9e3c8c171448a91a7de9bf1d76ad94d0f64ba7cbf1b8467a4817eb6b/django-setty-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "9d47a301ec81ff9447ab8115653400ce", "sha256": "726a1217c608ad40439f92f8aaabe96bb084b03616cd611b26e2771a402ae6ce" }, "downloads": -1, "filename": "django_setty-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9d47a301ec81ff9447ab8115653400ce", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7458, "upload_time": "2019-03-26T23:14:09", "url": "https://files.pythonhosted.org/packages/34/34/5e824c85cfeecb8250df36baefe459f1447b6ca3ffde17a64e6643d1b9e0/django_setty-2.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6782c8dbbcc6bff3741e86a55c6fd57b", "sha256": "f3456fc6130030908960f8e11d12c5e708e7b00685bdc7bbdacfd88e2c135c3c" }, "downloads": -1, "filename": "django-setty-2.0.1.tar.gz", "has_sig": false, "md5_digest": "6782c8dbbcc6bff3741e86a55c6fd57b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6233, "upload_time": "2019-03-26T23:14:13", "url": "https://files.pythonhosted.org/packages/83/dc/081e548d29dc3f42d935ea83ac35a39dfc83557ecb508387eba1ea4b390c/django-setty-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "0460d8ce825ea3bb59158fb62f22c10e", "sha256": "0713a0faa0f6fa13b49e36f2f4a94fea6a20351fb09866a60d337acb88a2a40a" }, "downloads": -1, "filename": "django_setty-2.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0460d8ce825ea3bb59158fb62f22c10e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7609, "upload_time": "2019-03-26T23:40:39", "url": "https://files.pythonhosted.org/packages/2e/b3/826c9da0adeae81ff544e039492196deff13c4357303c80d87495c313dbb/django_setty-2.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e1628b0f3665c2f4ae372d794bb6710a", "sha256": "2defa8f46e0b629124b0e84403f06051c7fe78bc2e37baddef024809a3c42f57" }, "downloads": -1, "filename": "django-setty-2.0.2.tar.gz", "has_sig": false, "md5_digest": "e1628b0f3665c2f4ae372d794bb6710a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6365, "upload_time": "2019-03-26T23:40:44", "url": "https://files.pythonhosted.org/packages/90/fd/454895c58748582e90a293b09ad9d7ace7aab72f8110d60609300ea78ab7/django-setty-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "b4700702c6d1d5d7bbb72e9623526ae3", "sha256": "d14edaaab62c026d2ac53538de24e4b47ca4d4d81088a313a31bbd8fc3bf5592" }, "downloads": -1, "filename": "django_setty-2.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "b4700702c6d1d5d7bbb72e9623526ae3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7672, "upload_time": "2019-03-26T23:54:57", "url": "https://files.pythonhosted.org/packages/76/93/ed7525b72b2831fb067f15de03e13580855c6edc17ba5bc07bb113251a98/django_setty-2.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5cc55add5cbc786db6a2c2c34446863e", "sha256": "44ba7dccd9618175aa066d7f022e47af6e6b622f8f6f491cbc1c8053f81fd306" }, "downloads": -1, "filename": "django-setty-2.0.3.tar.gz", "has_sig": false, "md5_digest": "5cc55add5cbc786db6a2c2c34446863e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6424, "upload_time": "2019-03-26T23:55:02", "url": "https://files.pythonhosted.org/packages/8d/91/d351759237287fd9b12e905ddf69227be94358f13a06d0e8858e1e7a2279/django-setty-2.0.3.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "16bc4fd392a4d8b7a97707cd1f2ca28d", "sha256": "f98cb3dfcccc3538ae968138a3d582db4bae8557154487c8e0cd231fd019b9df" }, "downloads": -1, "filename": "django_setty-3.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "16bc4fd392a4d8b7a97707cd1f2ca28d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7714, "upload_time": "2019-04-02T17:57:50", "url": "https://files.pythonhosted.org/packages/21/70/f7ad716e867e5782c0748f513dfbce5dbe2dbe0274fe0f581d491d719767/django_setty-3.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "01eecfc6ce19ad12940c1c1ab23ea822", "sha256": "7d60c33697faab4f5a75962a45ce0ad9bbe4c31b44e1dadb29c0cbb673eb8dfa" }, "downloads": -1, "filename": "django-setty-3.0.0.tar.gz", "has_sig": false, "md5_digest": "01eecfc6ce19ad12940c1c1ab23ea822", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6468, "upload_time": "2019-04-02T17:57:55", "url": "https://files.pythonhosted.org/packages/11/f7/2a314f4fcf1b995af4da9dc7c1049d09ec6df4775382048429b1b21522c8/django-setty-3.0.0.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "ec448eeadaa75a6d54ea81bdff3da39a", "sha256": "24c61fb621ea5b0f3a0fcca822b488cd2d0402c8a613a2097055e92bde5b60c9" }, "downloads": -1, "filename": "django_setty-3.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ec448eeadaa75a6d54ea81bdff3da39a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7904, "upload_time": "2019-04-07T22:01:51", "url": "https://files.pythonhosted.org/packages/47/f2/0fb04ca8c211bdca52dde5d7c3855c20f0f98d2b5586ee773bb16ce8d421/django_setty-3.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63ff7a1e00e98ce0feaf4ad8d5f94cc4", "sha256": "c5c61ca1f0177c196c655991b941b60cb72c3679dcc4fe2c67e71e6809a62d8d" }, "downloads": -1, "filename": "django-setty-3.1.0.tar.gz", "has_sig": false, "md5_digest": "63ff7a1e00e98ce0feaf4ad8d5f94cc4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7094, "upload_time": "2019-04-07T22:01:58", "url": "https://files.pythonhosted.org/packages/d4/28/c1668d8c41696b6940693aeba17b3940c607cdd96bc504b38ef928f69cd6/django-setty-3.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec448eeadaa75a6d54ea81bdff3da39a", "sha256": "24c61fb621ea5b0f3a0fcca822b488cd2d0402c8a613a2097055e92bde5b60c9" }, "downloads": -1, "filename": "django_setty-3.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ec448eeadaa75a6d54ea81bdff3da39a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7904, "upload_time": "2019-04-07T22:01:51", "url": "https://files.pythonhosted.org/packages/47/f2/0fb04ca8c211bdca52dde5d7c3855c20f0f98d2b5586ee773bb16ce8d421/django_setty-3.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63ff7a1e00e98ce0feaf4ad8d5f94cc4", "sha256": "c5c61ca1f0177c196c655991b941b60cb72c3679dcc4fe2c67e71e6809a62d8d" }, "downloads": -1, "filename": "django-setty-3.1.0.tar.gz", "has_sig": false, "md5_digest": "63ff7a1e00e98ce0feaf4ad8d5f94cc4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7094, "upload_time": "2019-04-07T22:01:58", "url": "https://files.pythonhosted.org/packages/d4/28/c1668d8c41696b6940693aeba17b3940c607cdd96bc504b38ef928f69cd6/django-setty-3.1.0.tar.gz" } ] }