Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Django project configuration helpers

Project Description
Django-Confy
~~~~~~~~~~~~

Comfy config for Django

Actually this code is just `django-dotenv <https://github.com/jacobian-archive/django-dotenv>`_, `django-getenv <https://github.com/schwuk/django-getenv>`_, `dj-database-url <https://github.com/kennethreitz/dj-database-url>`_, `dj-email-url <https://github.com/migonzalvar/dj-email-url>`_, `dj-search-url <https://github.com/dstufft/dj-search-url>`_ and `django-cache-url <https://github.com/ghickman/django-cache-url>`_ combined together.


Installation
------------

.. code-block:: sh

pip install django-confy


Example for settings.py
-----------------------

.. code-block:: py

from confy import env, database, cache

DEBUG = env('DEV')
SECRET_KEY = env('SECRET_KEY')

DATABASES = {'default': database.config()}

CACHES = {'default': cache.config()}


Example for .env file
---------------------

.. code-block:: sh

DJANGO_SETTINGS_MODULE=project_name.settings
DEV=True
DATABASE_URL=sqlite:////server/apps/project_name/project_name.sqlite3
CACHE_URL=uwsgi://


Example manage.py
-----------------

.. code-block:: py

#!/usr/bin/env python
import sys
import confy
confy.read_environment_file()
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)


Example for wsgi.py
---------------

.. code-block:: py

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()


Credits
-------

* Code borrowed by `Eugene MechanisM <https://git.io/MechanisM>`_
* Released under `MIT License <http://www.opensource.org/licenses/mit-license.php>`_
Release History

Release History

This version
History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_confy-1.0.4-py3-none-any.whl (8.7 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Apr 25, 2015
django-confy-1.0.4.tar.gz (12.4 kB) Copy SHA256 Checksum SHA256 Source Apr 25, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting