From a715e7988aa7e7f5136b7e98dad7d0f8fb389954 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 7 Mar 2007 02:00:30 -0800 Subject: again, changes for production, including static relocation --- bn_django/settings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bn_django/settings.py') diff --git a/bn_django/settings.py b/bn_django/settings.py index 3183cdc..f8b6ed9 100644 --- a/bn_django/settings.py +++ b/bn_django/settings.py @@ -1,6 +1,6 @@ # Django settings for bn_django project. -DEBUG = True +DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( @@ -11,7 +11,7 @@ ADMINS = ( MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. -DATABASE_NAME = '/home/bnewbold/bn-project/bn_django/bn_django.db' # Or path to database file if using sqlite3. +DATABASE_NAME = '/srv/django/bn_django.db' # Or path to database file if using sqlite3. DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. @@ -34,16 +34,16 @@ USE_I18N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = '/home/bnewbold/bn-project/media/' +MEDIA_ROOT = '/srv/http/bryannewbold/static/' # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com" -MEDIA_URL = '/media/' +MEDIA_URL = '/static/' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". -ADMIN_MEDIA_PREFIX = '/style/django-admin/' +ADMIN_MEDIA_PREFIX = '/static/django-admin/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'jdsgk29845ldsfg0090204tv(GFD8g0(%$)*@$#R%U)#*ifd;/q' @@ -70,7 +70,7 @@ TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. - '/home/bnewbold/bn-project/bn_django/templates', + '/srv/django/bn-project/bn_django/templates', ) INSTALLED_APPS = ( -- cgit v1.2.3