Skip to content

Instantly share code, notes, and snippets.

@chrisgilmerproj
Created December 8, 2012 18:42
Show Gist options
  • Save chrisgilmerproj/4241281 to your computer and use it in GitHub Desktop.
Save chrisgilmerproj/4241281 to your computer and use it in GitHub Desktop.
Django Settings Header
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"))
@chrisgilmerproj
Copy link
Author

I use this so often I like to keep it handy.

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