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.
### Credits
- Code borrowed by [Eugene MechanisM](https://mechanism.name)
- Released under [MIT License](http://www.opensource.org/licenses/mit-license.php)
### Example 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 .env
...
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 wsgi.py
...
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
...
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.
### Credits
- Code borrowed by [Eugene MechanisM](https://mechanism.name)
- Released under [MIT License](http://www.opensource.org/licenses/mit-license.php)
### Example 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 .env
...
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 wsgi.py
...
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-confy-1.0.3.tar.gz
(5.8 kB
view details)
File details
Details for the file django-confy-1.0.3.tar.gz
.
File metadata
- Download URL: django-confy-1.0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
803fb426f3bfa53278ccfc6cb19ae2f4ffbc5eddc688e6b09da54a66514b4358
|
|
MD5 |
0a7968e7d1694238c1bb4347df449bb8
|
|
BLAKE2b-256 |
76eba8e817e7ad13b426fb49b67a3e11b6bdea2d612acbc656360e9093aaf674
|