From b49c71899e27592eee03b3caefbce26a411c6099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Tue, 19 Nov 2013 15:44:00 +0100 Subject: settings.py: use python to find ROOT_DIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Bießmann Signed-off-by: Jeremy Kerr --- apps/settings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/settings.py') diff --git a/apps/settings.py b/apps/settings.py index 4bde26b..3579ab7 100644 --- a/apps/settings.py +++ b/apps/settings.py @@ -68,9 +68,7 @@ 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. -- cgit v1.2.3