Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate code from configuration in Django settings #552

Closed
hackdna opened this issue Jul 7, 2015 · 0 comments
Closed

Separate code from configuration in Django settings #552

hackdna opened this issue Jul 7, 2015 · 0 comments

Comments

@hackdna
Copy link
Member

hackdna commented Jul 7, 2015

two types of settings

application-specific configuration (DEBUG, STATICFILE_DIRS, INSTALLED_APPS) - in git:

settings/
     base.py
     development.py
     production.py

set DJANGO_SETTINGS_MODULE to dev or prod settings:
in /etc/apache2/sites-available/001-refinery.conf via SetEnv in vhost to pick up in wsgi.py

instance-specific configuration (passwords, keys, STATIC_ROOT, MEDIA_ROOT, TIME_ZONE, etc) - outside git:
config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant