Last active
December 19, 2015 18:39
-
-
Save ergusto/6000407 to your computer and use it in GitHub Desktop.
Paths for Django settings files
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 django | |
import os | |
DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__)) | |
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) | |
''' | |
Example usage: | |
STATIC_ROOT = os.path.join(SITE_ROOT, 'static'), | |
... | |
TEMPLATE_DIRS = ( | |
os.path.join(SITE_ROOT, 'templates'), | |
) | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment