Changeset - ab300f858903
[Not reviewed]
0 2 0
Branko Majic (branko) - 10 years ago 2015-09-13 22:09:20
branko@majic.rs
MDT-1: Use better pathfinding for development environment when locating the sqlite3 database. Set a saner default for redirect after login (redirect to 'index' view, whatever it may be).
2 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
project/project_name/settings/base.py
Show inline comments
 
@@ -79,3 +79,6 @@ STATIC_ROOT = os.path.normpath(os.path.join(ASSETS_ROOT, "static"))
 
STATICFILES_DIRS = (
 
    os.path.normpath(os.path.join(PROJECT_ROOT, "static")),
 
)
 

	
 
# Redirect user to specified view after login.
 
LOGIN_REDIRECT_URL = "index"
project/project_name/settings/development.py
Show inline comments
 
@@ -40,7 +40,7 @@ MANAGERS = ADMINS
 
DATABASES = {
 
    'default': {
 
        'ENGINE': 'django.db.backends.sqlite3',
 
        'NAME': 'development.sqlite3',
 
        'NAME': os.path.join(PROJECT_ROOT, 'development.sqlite3'),
 
    }
 
}
 

	
0 comments (0 inline, 0 general)