Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Django-Confy

Comfy config for Django

Actually this code is just a few apps combined together.

Installation

pip install django-confy

Example for settings.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

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

Example manage.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

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

License

MIT

Documentation

Documentation

Credits

About

A comfy config for Django

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages