X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fsettings.py;h=e663c48cc50426d818bf71b66c4c62129db0d38d;hb=52ef32ce109ac96b6dc63a66997e39c83ad23d59;hp=4bde26b66a5274b8bd3b5a88f8d4650a6dbbdd04;hpb=e4c13aee7dc39ae929a26df83b43dfd7d331a357;p=patchwork diff --git a/apps/settings.py b/apps/settings.py index 4bde26b..e663c48 100644 --- a/apps/settings.py +++ b/apps/settings.py @@ -68,14 +68,12 @@ ROOT_URLCONF = 'urls' LOGIN_URL = '/user/login/' LOGIN_REDIRECT_URL = '/user/' -# If you change the ROOT_DIR setting in your local_settings.py, you'll need to -# re-define the variables that use this (MEDIA_ROOT and TEMPLATE_DIRS) too. -ROOT_DIR = '/srv/patchwork' +ROOT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir) 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. - os.path.join(ROOT_DIR, 'templates') + os.path.join(ROOT_DIR, 'templates'), ) # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/"