From 2741a10a356e4fd66441af005e142dbf5dbfc9bc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 23 Dec 2015 12:22:23 +0100 Subject: Fix default ROOT_PATH --- example_project/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example_project') diff --git a/example_project/settings.py b/example_project/settings.py index 6a0bf4079..3a001bf2b 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -17,7 +17,10 @@ CACHE_SMALLTIMEOUT = 120 CACHE_TIMEOUT = 3600 CACHE_BACKEND = 'memcached://127.0.0.1:11211/' -ROOT_PATH = os.path.abspath(os.path.curdir) + os.path.sep +ROOT_PATH = (os.path.abspath(os.path.curdir) + os.path.sep).replace( + os.path.sep * 2, os.path.sep) +if ROOT_PATH == os.path.sep: + ROOT_PATH = "." + os.path.sep STATIC_URL = '/static/' STATIC_ROOT = ROOT_PATH + 'static/' BASE_URL = "/" -- cgit v1.2.3