X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=settings.py;h=dfe7fce421646e63d02c792f1f340fd775822026;hb=bf8c3434c59c55704ce931a0954bd1e30c4e02f1;hp=bef6aa8e11d3730ab9c7d5bbef722ddd487d2fc5;hpb=af10fc8cc1721d642fbfc3b6b11ae2dfb881fa0a;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/settings.py b/settings.py index bef6aa8..dfe7fce 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 = ( @@ -112,3 +115,4 @@ AUTHENTICATION_BACKENDS = ( ) AUTH_PROFILE_MODULE = 'base.UserProfile' +# vim: set sts=4 sw=4 expandtab: