X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=settings.py;h=9393d9494882b9fae7dd0883e9edfca9f03b3c3b;hb=2cdeb70eadf0c6cf18049b5b2e4f66a1309a6c96;hp=bef6aa8e11d3730ab9c7d5bbef722ddd487d2fc5;hpb=af10fc8cc1721d642fbfc3b6b11ae2dfb881fa0a;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/settings.py b/settings.py index bef6aa8..9393d94 100644 --- a/settings.py +++ b/settings.py @@ -1,8 +1,14 @@ # Django settings for ee project. +import os + +# Import database settings from a default file (so we can keep those out +# of git). from dbsettings import * -DEBUG = True +PROJECT_DIR = os.path.dirname(__file__) + +DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( @@ -78,7 +84,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 +118,12 @@ AUTHENTICATION_BACKENDS = ( ) AUTH_PROFILE_MODULE = 'base.UserProfile' + +# Import local settings, that are specific to this installation. These +# can override any settings specified here. +try: + from localsettings import * +except ImportError: + pass + +# vim: set sts=4 sw=4 expandtab: