Skip to content

Instantly share code, notes, and snippets.

@aaronlelevier
Created March 26, 2014 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronlelevier/9783304 to your computer and use it in GitHub Desktop.
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
# 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