Created
April 29, 2011 02:46
-
-
Save valyagolev/947753 to your computer and use it in GitHub Desktop.
Django settings awesomness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .base import * | |
try: | |
from .local import * | |
except ImportError: | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .base import * | |
INSTALLED_APPS += ('gunicorn',) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir settings | |
mv settings.py settings/base.py | |
wget https://gist.github.com/raw/947753/e7d3aa82de5a1ba82f9b5532ae2f4240dbbfd5c7/__init__.py -O settings/__init__.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://unfoldthat.com/2011/04/29/django-settings.html