X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=settings.py;h=9393d9494882b9fae7dd0883e9edfca9f03b3c3b;hb=2cdeb70eadf0c6cf18049b5b2e4f66a1309a6c96;hp=ba3582d320d897fbe6efcfa3e3004da143b456fa;hpb=8021b0208f57dce74a08afb97fb62d5323fbd4ac;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/settings.py b/settings.py index ba3582d..9393d94 100644 --- a/settings.py +++ b/settings.py @@ -1,11 +1,14 @@ # Django settings for ee project. -from dbsettings import * import os +# Import database settings from a default file (so we can keep those out +# of git). +from dbsettings import * + PROJECT_DIR = os.path.dirname(__file__) -DEBUG = True +DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( @@ -115,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: