From a349a054374a6738915cc118e5698f0a9532f5aa Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 6 Nov 2012 18:31:55 +0100 Subject: [PATCH] Added paths for database and STATIC_ROOT --- common/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/settings.py b/common/settings.py index 53f9a77..6bc9bfd 100644 --- a/common/settings.py +++ b/common/settings.py @@ -16,7 +16,7 @@ MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'database.db', # Or path to database file if using sqlite3. + 'NAME': os.path.join(PROJECT_PATH, 'database.db'), # Or path to database file if using sqlite3. 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. @@ -63,7 +63,7 @@ MEDIA_URL = '' # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/home/media/media.lawrence.com/static/" -STATIC_ROOT = '' +STATIC_ROOT = os.path.join(PROJECT_PATH, 'static') # URL prefix for static files. # Example: "http://media.lawrence.com/static/"