{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "\n\n[](https://pypi.org/project/django-templates-variables/)\n\n#### Installation\n```bash\n$ [sudo] pip install django-templates-variables\n```\n\n#### `settings.py`\n```python\nINSTALLED_APPS+= [\n 'django_templates_variables'\n]\n\nTEMPLATES = [\n {\n # \u2026\n 'OPTIONS': {\n 'context_processors': [\n 'django_templates_variables.context_processors.templates_variables',\n ],\n },\n },\n]\n```\n\n#### Examples\n`settings.py`\n```python\nTEMPLATES_VARIABLES = dict(\n settings = dict(\n DEBUG=DEBUG,\n VAR=\"VALUE\"\n )\n)\n```\n\n`template.html`:\n```html\n{% if settings.DEBUG %}\n {{ settings.VAR }}\n{% endif %}\n```\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/andrewp-as-is/django-templates-variables.py", "keywords": "django templates variables", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-templates-variables", "package_url": "https://pypi.org/project/django-templates-variables/", "platform": "", "project_url": "https://pypi.org/project/django-templates-variables/", "project_urls": { "Homepage": "https://github.com/andrewp-as-is/django-templates-variables.py" }, "release_url": "https://pypi.org/project/django-templates-variables/2019.7.31/", "requires_dist": null, "requires_python": "", "summary": "Django templates variables settings", "version": "2019.7.31" }, "last_serial": 5625392, "releases": { "2019.7.31": [ { "comment_text": "", "digests": { "md5": "0d25da0d8a2caa18186a97e3214428b6", "sha256": "16d637a6154b36459585ada72b33bfe6939ad18e11f6c9e6636b30d7463fbefc" }, "downloads": -1, "filename": "django-templates-variables-2019.7.31.tar.gz", "has_sig": false, "md5_digest": "0d25da0d8a2caa18186a97e3214428b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1563, "upload_time": "2019-08-02T17:40:28", "url": "https://files.pythonhosted.org/packages/33/d7/982d337bf3b2ae22f5da37aaea02a9fe7e45d3623da756a7f9174f4c2def/django-templates-variables-2019.7.31.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0d25da0d8a2caa18186a97e3214428b6", "sha256": "16d637a6154b36459585ada72b33bfe6939ad18e11f6c9e6636b30d7463fbefc" }, "downloads": -1, "filename": "django-templates-variables-2019.7.31.tar.gz", "has_sig": false, "md5_digest": "0d25da0d8a2caa18186a97e3214428b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1563, "upload_time": "2019-08-02T17:40:28", "url": "https://files.pythonhosted.org/packages/33/d7/982d337bf3b2ae22f5da37aaea02a9fe7e45d3623da756a7f9174f4c2def/django-templates-variables-2019.7.31.tar.gz" } ] }