X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=settings.py;h=ba3582d320d897fbe6efcfa3e3004da143b456fa;hb=8021b0208f57dce74a08afb97fb62d5323fbd4ac;hp=bef6aa8e11d3730ab9c7d5bbef722ddd487d2fc5;hpb=df3058d295e7475798be7c288ae3575f54b4b732;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/settings.py b/settings.py index bef6aa8..ba3582d 100644 --- a/settings.py +++ b/settings.py @@ -1,6 +1,9 @@ # Django settings for ee project. from dbsettings import * +import os + +PROJECT_DIR = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -78,7 +81,7 @@ TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. - '/home/matthijs/docs/src/django/ee/templates', + os.path.join(PROJECT_DIR, 'templates'), ) INSTALLED_APPS = (