Last Updated: February 25, 2016
·
457
· paperaeroplain

Setting Django directory paths in settings

Useful constants to add to settings.py

Directory paths to current site root

DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__))
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))