Skip to content

Instantly share code, notes, and snippets.

@artieziff
Last active December 17, 2015 03:19
Show Gist options
  • Save artieziff/5542212 to your computer and use it in GitHub Desktop.
Save artieziff/5542212 to your computer and use it in GitHub Desktop.

###DJANGO RELATIVE PATH

import os

PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

TEMPLATE_DIRS = ( os.path.join(PROJECT_ROOT, 'templates' ), )

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