Correct settings. Add SRC_BASE_URL that points to the django site root
authorymh <ymh.work@gmail.com>
Mon, 11 Feb 2013 14:33:25 +0100
changeset 33 71028c5eb7eb
parent 32 21b0003310f3
child 34 92f25438071d
Correct settings. Add SRC_BASE_URL that points to the django site root
src/egonomy/config.py.tmpl
src/egonomy/settings.py
--- a/src/egonomy/config.py.tmpl	Mon Feb 11 14:14:24 2013 +0100
+++ b/src/egonomy/config.py.tmpl	Mon Feb 11 14:33:25 2013 +0100
@@ -6,9 +6,6 @@
 WEB_URL = 'http://localhost/'
 STATIC_URL = BASE_URL + 'static/site/'
 
-# if necessary
-#EGONOMY_BASE_URL = BASE_URL + 'ego/'
-
 DEBUG = True
 
 DATABASES = {
--- a/src/egonomy/settings.py	Mon Feb 11 14:14:24 2013 +0100
+++ b/src/egonomy/settings.py	Mon Feb 11 14:33:25 2013 +0100
@@ -161,8 +161,9 @@
 
 from .config import * #@UnusedWildImport
 
-if not "EGONOMY_BASE_URL" in locals():
-    EGONOMY_BASE_URL = BASE_URL + 'ego/' 
+if not "SRC_BASE_URL" in locals():
+    SRC_BASE_URL = BASE_URL + __name__.split('.')[0] + '/' 
 
 if not "LOGIN_URL" in locals():
-    LOGIN_URL = EGONOMY_BASE_URL + 'login/'
\ No newline at end of file
+    LOGIN_URL = SRC_BASE_URL + 'login/'
+