{ "info": { "author": "Travis Swicegood", "author_email": "travis@domain51.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "dj-settings-helpers\n===================\nSimple helpers for setting up your Django settings file\n\n.. image:: https://secure.travis-ci.org/tswicegood/dj-settings-helpers.png?branch=master\n\nUsage\n-----\nInside your ``settings.py`` file, do the following::\n\n from dj_settings_helpers import create_project_dir, get_env\n project_dir = create_project_dir(__file__)\n\nNow, you can use ``project_dir`` to generate paths relative to your\n``settings.py`` file and ``get_env`` to load environment variables.\n\nFor example, you can use it to add your ``project_root/templates``\ndirectory to your ``TEMPLATES_DIRS`` setting like this::\n\n TEMPLATES_DIRS = (\n project_dir('templates'),\n )\n\nYou can use the ``get_env`` variable to pull in environment variables with\ndefaults that depend on the ``ENVIRONMENT`` variable. For example, you can set\nmultiple default ``BROKER_HOST`` variables for Celery like this::\n\n BROKER_HOST = get_env('BROKER_HOST', 'default.rabbitmq.example.com',\n dev='localhost', staging='staging.rabbitmq.example.com')\n\nIf your ``ENVIRONMENT`` variable is equal to ``dev``, the ``localhost`` string\nis used; if set to ``staging``, it is ``staging.rabbitmq.example.com``, and all\nother environments use ``default.rabbitmq.example.com``. All of these are\noverridden by the presence of an environment variable named ``BROKER_HOST``.\n\nPlease see the inline documentation in ``dj_settings_helpers.py`` for full\nexamples and usage.\n\n\nInstallation\n------------\n\n::\n\n pip install dj-settings-helpers\n\n\nLicense\n-------\nCopyright 2012 Travis Swicegood\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tswicegood/dj-settings-helpers", "keywords": null, "license": "Apache", "maintainer": null, "maintainer_email": null, "name": "dj-settings-helpers", "package_url": "https://pypi.org/project/dj-settings-helpers/", "platform": "any", "project_url": "https://pypi.org/project/dj-settings-helpers/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tswicegood/dj-settings-helpers" }, "release_url": "https://pypi.org/project/dj-settings-helpers/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Simple helpers for setting up your Django settings file", "version": "1.0.0" }, "last_serial": 789010, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4b38aae5c434d80f3cd2453481cf1a1a", "sha256": "66b07a512055afa2ce224865f60875ba7822b1b5e4126f17769329b41985104f" }, "downloads": -1, "filename": "dj-settings-helpers-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4b38aae5c434d80f3cd2453481cf1a1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3192, "upload_time": "2012-11-03T03:19:01", "url": "https://files.pythonhosted.org/packages/c7/82/baef002e949378422a9eb75987a3b88fb7b4e23a24b66f1c3e01cacc33b2/dj-settings-helpers-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b38aae5c434d80f3cd2453481cf1a1a", "sha256": "66b07a512055afa2ce224865f60875ba7822b1b5e4126f17769329b41985104f" }, "downloads": -1, "filename": "dj-settings-helpers-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4b38aae5c434d80f3cd2453481cf1a1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3192, "upload_time": "2012-11-03T03:19:01", "url": "https://files.pythonhosted.org/packages/c7/82/baef002e949378422a9eb75987a3b88fb7b4e23a24b66f1c3e01cacc33b2/dj-settings-helpers-1.0.0.tar.gz" } ] }