Skip to content

Instantly share code, notes, and snippets.

@valyagolev
Created April 29, 2011 02:46
Show Gist options
  • Save valyagolev/947753 to your computer and use it in GitHub Desktop.
Save valyagolev/947753 to your computer and use it in GitHub Desktop.
Django settings awesomness
from .base import *
try:
from .local import *
except ImportError:
pass
from .base import *
INSTALLED_APPS += ('gunicorn',)
mkdir settings
mv settings.py settings/base.py
wget https://gist.github.com/raw/947753/e7d3aa82de5a1ba82f9b5532ae2f4240dbbfd5c7/__init__.py -O settings/__init__.py
@valyagolev
Copy link
Author

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