Created
December 8, 2012 18:42
-
-
Save chrisgilmerproj/4241281 to your computer and use it in GitHub Desktop.
Django Settings Header
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
import os.path | |
import sys | |
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '../')) | |
# Include apps on the path | |
sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this so often I like to keep it handy.