{ "info": { "author": "Mikhail volynov", "author_email": "mikhail@volynov.ru", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\nDjango Confidence\n=====\n\nDjango Confidence is a Django app to make configuration files automatically.\n\nThis app is developed to help developers create their own layout to configuration files quick and simple with built-in dictionaries or by using configuration presets (that make it even more easier).\n\nQuick start\n-----------\n\n1. Add \"confidence\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = [\n 'django.contrib.admin', \n 'django.contrib.auth',\n ...\n 'confidence',\n ]\n\n2. In your settings.py import \"Configuration\" class from \"confidence\" package like this::\n\n from confidence import Configuration\n\n3. Create a dictionary of config fieldsets like this::\n\n\tmarkup = {\n\t\t'section': {\n\t\t\t'option': 'value'\n\t\t},\n\n\t\t'project': {\n\t\t\t'project_name': 'Awesome Project',\n\t\t}\n\t}\n\n4. In your settings.py create a variable called PROJECT_CONF and fill it with a Configuration instance::\n\n\tPROJECT_CONF = Configuration(filepath:str, markup:dict)\n\n4.1 Optional. You can use library of preset configuration files by importing from conf.presets. Example::\n\n\tfrom confidence import Configuration\n\tfrom confidence.presets import ProjectPreset, OptionsPreset\n\n\tPROJECT_CONF = Configuration.compile_from_presets(filepath, [\n\t\tProjectPreset(name='Awesome Project', version='1.0', site_url='http://awesome!'),\n\t\tOptionsPreset(debug=True, allowed_hosts=['127.0.0.1']),\n\t])\n\n5. Run python manage.py makeconf. Configuration file will be created.\n\n6. Edit your configuration file as you want to.\n\n7. Use it in your settings.py by using get-like methods::\n\n\tPROJECT_NAME = PROJECT_CONF.get('project', 'project_name')\n\tDEBUG = PROJECT_CONF.get_bool('options', 'debug')\n\tALLOWED_HOSTS = PROJECT_CONF.get_csv('options', 'allowed_hosts')\n\n8. Enjoy!", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://volynov.ru/", "keywords": "", "license": "Apache 2.0 License", "maintainer": "", "maintainer_email": "", "name": "django-confidence", "package_url": "https://pypi.org/project/django-confidence/", "platform": "", "project_url": "https://pypi.org/project/django-confidence/", "project_urls": { "Homepage": "https://volynov.ru/" }, "release_url": "https://pypi.org/project/django-confidence/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A Django app to manage project configuration files.", "version": "0.1.0" }, "last_serial": 3752188, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5274e6182ac901159a570488be2f1aca", "sha256": "d36398e26036dfb0dad296df4d4325cc14c464133c90f32ac538f6134a92b94c" }, "downloads": -1, "filename": "django-confidence-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5274e6182ac901159a570488be2f1aca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4774, "upload_time": "2018-04-10T13:36:54", "url": "https://files.pythonhosted.org/packages/6c/96/5e094ae6e4e0dc0e7210d808a4fe05fcd7348051ce975c242da6e742935a/django-confidence-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5274e6182ac901159a570488be2f1aca", "sha256": "d36398e26036dfb0dad296df4d4325cc14c464133c90f32ac538f6134a92b94c" }, "downloads": -1, "filename": "django-confidence-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5274e6182ac901159a570488be2f1aca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4774, "upload_time": "2018-04-10T13:36:54", "url": "https://files.pythonhosted.org/packages/6c/96/5e094ae6e4e0dc0e7210d808a4fe05fcd7348051ce975c242da6e742935a/django-confidence-0.1.0.tar.gz" } ] }