Created
March 26, 2014 13:37
-
-
Save aaronlelevier/9783304 to your computer and use it in GitHub Desktop.
A simple way in Django's settings.py to separate out default, 3rd party, and local Apps
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
# A simple way to break out Apps within the Django settings.py | |
# file in a logical way. Third party and Local Apps will vary | |
# based on the project. | |
DEFAULT_APPS = ( | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'django.contrib.admin', | |
'django.contrib.admindocs', | |
) | |
THIRD_PARTY_APPS = ( | |
'psycopg2', | |
'south', | |
'selenium', | |
'social_auth', | |
'twitter_tag', | |
) | |
LOCAL_APPS = ( | |
'core', | |
) | |
INSTALLED_APPS = DEFAULT_APPS + THIRD_PARTY_APPS + LOCAL_APPS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment