{ "info": { "author": "Mauricio Aizaga", "author_email": "mauricioaizaga@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "============================================\nDjango Administrable configuration variables\n============================================\n\nThe django `django_admin_conf_vars` app allows you to have configuration variables for your project with the Django admin\n\n\n# Installation\n--------------\n\n1. Install from `pip `_ ::\n\n $ pip install django-admin-conf-vars\n\n2. Add `django_admin_conf_vars` to your INSTALLED_APPS\n\n3. Migrate to create the databases::\n\n $ python manage.py migrate\n\nDon't worry about the warnings, they are shown only the first time. (It's becouse the next configuration is not ready yet)\n\n4. Create a python module named like you want. eg: 'my_var_settings_file.py' and put it into your project. eg: `my/path/package/my_var_settings_file.py`. Define your variables in that file::\n\n # -*- coding:utf-8 -*-\n from django_admin_conf_vars.global_vars import config\n\n config.set(\"MY_TIME_VAR\", default=60)\n config.set(\"MY_OTHER_VAR\", default=\"/some/path\", editable=False)\n ...\n\nBe sure to have migrated and have the database created at this point. See `How to use `_\n\n\n5. Add to your settings.py the path of your new module::\n\n VARS_MODULE_PATH = 'my_package.my_var_settings_file'\n\n\nThe variable VARS_MODULE_PATH must to have the name of your new file (point 4). Be sure to put it into an existing python package.\n\n\nReady! Now you have configuration variables with django admininistration.\nJust use it in you views, models or any python module. See `How to use `_\n\n\n## Upgrating from old version\n-----------------------------\n\nIf You have installed previous versions, you need to migrate again, but first you must to comment the line in your settings.py `# VARS_MODULE_PATH = 'my_package.my_var_settings_file'`.\n\n1. Comment the `VARS_MODULE_PATH` in your settings.py\n\n2. Upgrade via pip `$ pip install --upgrade django_admin_conf_vars`.\n\n3. Migrate `$ python manage.py migrate`\n\n4. Uncomment the VARS_MODULE_PATH\n\n5. Run the server\n\n\n\n## Dependences\n--------------\n\n* Django >= 1.7\n\n\n# How it works\n--------------\n`django_admin_conf_vars` use the Singleton design pattern to guarantee that only exists one instance of your configuration variables and that when you import the `config` variable always you have the global variables in a single object with your variables in its attributes. See `global_vars.py `_.\n\n\n`django_admin_conf_vars` doesn't use the database every time you import it, it only connect to the database in two cases:\n\n\n1. Every time you restart your server.\n\n2. Every you modified a single var in the admin.\n\n\n`django_admin_conf_vars` allows you to define global vars in your code, and too allows to edit them with the django admin. If you modify a variable with the admin, this always will keep the value of the database, and never will rewrite with the value inside the code. If you want to use the value inside the code, you can edit it in the admin and copy that value :)\n\n\n\n# Differences between normal settings variables and django_admin_conf_vars\n--------------------------------------------------------------------------\n\n## Normal usage:\n----------------\nYour vars in the settings.py::\n\n MY_TIME_VAR = 60\n MY_OTHER_VAR = \"/some/path\"\n\n\nUsing your vars in a view.py::\n\n from django.conf import settings\n\n def my_view(request):\n ...\n a = settings.MY_TIME_VAR\n b = settings.MY_OTHER_VAR\n ...\n\n\nConclusion: You have static variables written in your settings.py\n\nbut... what happen if you want to edit some of those variables in production? You need to edit the settings and reload your server. (\u03fe\u02f3\u03ff)..!!!\n\n\n## django_admin_conf_vars usage:\n--------------------------------\nYou writte your variables and use them like normal usage.\n\nYour vars in my_var_settings_file.py::\n\n # -*- coding:utf-8 -*-\n from django_admin_conf_vars.global_vars import config\n\n config.set(\"MY_TIME_VAR\", default=60)\n config.set(\"MY_OTHER_VAR\", default=\"/some/path\")\n ...\n\n\nAnd using your vars in a view.py::\n\n from django_admin_conf_vars.global_vars import config\n\n def my_view(request):\n ...\n a = config.MY_TIME_VAR\n b = config.MY_OTHER_VAR\n ...\n\n\nSimple! Now you can edit those variables with the django admin\n\n\n\n# Author & Contributors\n-----------------------\n* Created by `Mauricio Aizaga `_. (`@maoaiz `_ write me!)\n* You\n\nFeel free to send a `pull request `_ to make a better software, I wait you.\n\n\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/maoaiz/django-admin-conf-vars", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-admin-conf-vars", "package_url": "https://pypi.org/project/django-admin-conf-vars/", "platform": "", "project_url": "https://pypi.org/project/django-admin-conf-vars/", "project_urls": { "Homepage": "https://github.com/maoaiz/django-admin-conf-vars" }, "release_url": "https://pypi.org/project/django-admin-conf-vars/0.4.1/", "requires_dist": [ "django (>=1.7)" ], "requires_python": "", "summary": "A simple Django app to edit configuration variables with the Django admin.", "version": "0.4.1" }, "last_serial": 4102396, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0292384d3ae36862b628fa33cbbf99c8", "sha256": "321cf26bab40a63b0158dc86bc13ba0e4fec70b864f5103ea62e8ff367c94ae6" }, "downloads": -1, "filename": "django-admin-conf-vars-0.1.tar.gz", "has_sig": false, "md5_digest": "0292384d3ae36862b628fa33cbbf99c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4815, "upload_time": "2015-04-13T16:05:53", "url": "https://files.pythonhosted.org/packages/14/75/0b789c16bf1a29982d49648885602a728927c591c5115620e107fd013fb7/django-admin-conf-vars-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "24aca58ec514b9400e5e60c273d81eb7", "sha256": "13e93c403b3dee1a4e4e0e13dbb785f30a91720945996ee4a68517e4b60583a3" }, "downloads": -1, "filename": "django-admin-conf-vars-0.2.tar.gz", "has_sig": false, "md5_digest": "24aca58ec514b9400e5e60c273d81eb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4756, "upload_time": "2015-04-13T17:11:34", "url": "https://files.pythonhosted.org/packages/4f/a0/89ea56d1674102900d9555bce237d154727bef3d5920e7bda52c0d0dbb8c/django-admin-conf-vars-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b41757ecbb3e8b0637129a4b72a6621d", "sha256": "116a026df8820c2378653fd88301c11aada60703e7cfec680dbcaa1882d97622" }, "downloads": -1, "filename": "django-admin-conf-vars-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b41757ecbb3e8b0637129a4b72a6621d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5117, "upload_time": "2015-04-13T19:57:43", "url": "https://files.pythonhosted.org/packages/2d/64/df338bb67af09e784155ac5f42918700f22451b1649c5d574b03902116bb/django-admin-conf-vars-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6277300ce189f974138420a992e855d2", "sha256": "aac3a9fcab16a04dea32bb25639b8b8cfe3ebd1b912fab3c107aaa44ad94d600" }, "downloads": -1, "filename": "django-admin-conf-vars-0.2.2.tar.gz", "has_sig": false, "md5_digest": "6277300ce189f974138420a992e855d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5345, "upload_time": "2015-04-13T20:00:19", "url": "https://files.pythonhosted.org/packages/69/d8/ee6eb806083007d8e15ba266a5751ed3a9f24d3b88824aad67804006ef5f/django-admin-conf-vars-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "b4f89c3827a22ac9dc196b703baf81bd", "sha256": "dfd380cab182dc02571dea98b370cf4e087a0e46876046327c8378384b6f910c" }, "downloads": -1, "filename": "django-admin-conf-vars-0.2.3.tar.gz", "has_sig": false, "md5_digest": "b4f89c3827a22ac9dc196b703baf81bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6018, "upload_time": "2015-04-13T22:59:42", "url": "https://files.pythonhosted.org/packages/a5/2a/0bd09e0de12f03cb702a61b702595d67a7859a607e358efb9d5fbb8f6b1c/django-admin-conf-vars-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "d38faeb5ec8b83887995c7e68652cf66", "sha256": "5fcba3d3817c12c6f91e5fb114318bec177ecadcd7a816d1f8957b01aa03938b" }, "downloads": -1, "filename": "django-admin-conf-vars-0.2.4.tar.gz", "has_sig": false, "md5_digest": "d38faeb5ec8b83887995c7e68652cf66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6034, "upload_time": "2015-04-15T15:21:52", "url": "https://files.pythonhosted.org/packages/85/8a/2277087601e895edd1b6aff1e878a6a3d1a74c17a58cee608c80f7eef9b0/django-admin-conf-vars-0.2.4.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "2ea6cda39bcab2fb806bcce650435a89", "sha256": "7fbdd58d2c5f32f66d7aaae3ec44266dabeac8520851261f9a768026fb9ce151" }, "downloads": -1, "filename": "django-admin-conf-vars-0.3.0.tar.gz", "has_sig": false, "md5_digest": "2ea6cda39bcab2fb806bcce650435a89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6494, "upload_time": "2015-04-21T22:16:06", "url": "https://files.pythonhosted.org/packages/47/5a/e5d4fbf7bc3aee389bc4be57b3c6a78e92b0f1dbc3b85a8c041a7572449c/django-admin-conf-vars-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "cf4073aab212aee35a635cefef1c9cbb", "sha256": "afc8b7f7f218ab7804a1815836f9747144679ed2cb7dafdca1ce5dae8c2cde57" }, "downloads": -1, "filename": "django-admin-conf-vars-0.3.1.tar.gz", "has_sig": false, "md5_digest": "cf4073aab212aee35a635cefef1c9cbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6532, "upload_time": "2015-04-21T22:54:42", "url": "https://files.pythonhosted.org/packages/2b/0f/b3c4f90f2377ae6f1ea6f28301feefc1d287192dba3303649f9faa60b1ec/django-admin-conf-vars-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "4c5583360cf68c909051fda266073b7e", "sha256": "01dbf45d4fb74a1538785d24fceb83a8addc47535b8ad5d1ab2e974cd51d6b1d" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.0-py2-none-any.whl", "has_sig": false, "md5_digest": "4c5583360cf68c909051fda266073b7e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9218, "upload_time": "2018-07-25T22:42:38", "url": "https://files.pythonhosted.org/packages/21/98/524ada3302f833ebf6395ea573db15264048cbbaab8cf1999fad9006a505/django_admin_conf_vars-0.4.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fa4209c1dc1890766aee10d8b7a91bcb", "sha256": "4bdd4bfcf9a9bc3879aa5881bd8c859ebb4d265a1c96044cf032073fbaea3700" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fa4209c1dc1890766aee10d8b7a91bcb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9221, "upload_time": "2018-07-25T22:44:59", "url": "https://files.pythonhosted.org/packages/2d/8a/c3613ca4f67fd3abd5e02c031defa75f3e4a443be2c2688cde5f21f71f0f/django_admin_conf_vars-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "841377b0d40f7ee61a9c8f4a367ed2cb", "sha256": "80022e6086ba15ed18685c1592da37fe9d06660480bb15323d05ab302c9eeb1a" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "841377b0d40f7ee61a9c8f4a367ed2cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9218, "upload_time": "2018-07-25T22:26:44", "url": "https://files.pythonhosted.org/packages/d6/8c/c17bda452fd4f0625e2cf1b66a168adab340dbe3c9b4b221130046aaebd3/django_admin_conf_vars-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd760e1529316f65a5a0e357fa1b6239", "sha256": "dc37d36558aab79f36d68aa81fa620e95e3538861f6e62a348f4d05c5c1d2cc7" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.0.tar.gz", "has_sig": false, "md5_digest": "cd760e1529316f65a5a0e357fa1b6239", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6622, "upload_time": "2018-07-25T22:26:45", "url": "https://files.pythonhosted.org/packages/44/b3/b72e893d8ebf979384943dd99494b1f6b149dca302f88d62bdf9091d04c6/django_admin_conf_vars-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "7d1ea54b2ec89a89c360d38d3e42505d", "sha256": "bae7827e6334fbd017759d20517ad43d2c0af87d886b4e01dbd123cefe24a186" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7d1ea54b2ec89a89c360d38d3e42505d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9229, "upload_time": "2018-07-25T22:47:34", "url": "https://files.pythonhosted.org/packages/c6/0f/27d0e695695c2bd0b38f5157d7acca5d082503e1ba71bc6ce75aa9ce8507/django_admin_conf_vars-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2a5d5f60f619e6e946d5b65c294bcfde", "sha256": "ede6001955b468634ef1ef96bdc9e74e88c5f5936930d6d9f7f1e766d0777372" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.1.tar.gz", "has_sig": false, "md5_digest": "2a5d5f60f619e6e946d5b65c294bcfde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6637, "upload_time": "2018-07-25T22:47:35", "url": "https://files.pythonhosted.org/packages/59/44/1bc67bc287575dcb756f6be9ddfcefb71f3c630a1cc8011dcf94b0276066/django_admin_conf_vars-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7d1ea54b2ec89a89c360d38d3e42505d", "sha256": "bae7827e6334fbd017759d20517ad43d2c0af87d886b4e01dbd123cefe24a186" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7d1ea54b2ec89a89c360d38d3e42505d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9229, "upload_time": "2018-07-25T22:47:34", "url": "https://files.pythonhosted.org/packages/c6/0f/27d0e695695c2bd0b38f5157d7acca5d082503e1ba71bc6ce75aa9ce8507/django_admin_conf_vars-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2a5d5f60f619e6e946d5b65c294bcfde", "sha256": "ede6001955b468634ef1ef96bdc9e74e88c5f5936930d6d9f7f1e766d0777372" }, "downloads": -1, "filename": "django_admin_conf_vars-0.4.1.tar.gz", "has_sig": false, "md5_digest": "2a5d5f60f619e6e946d5b65c294bcfde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6637, "upload_time": "2018-07-25T22:47:35", "url": "https://files.pythonhosted.org/packages/59/44/1bc67bc287575dcb756f6be9ddfcefb71f3c630a1cc8011dcf94b0276066/django_admin_conf_vars-0.4.1.tar.gz" } ] }