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/git_browse/settings.py | 2 +- bn_django/git_browse/templates/git_browse/base.html | 2 +- bn_django/git_wiki/settings.py | 6 +++--- bn_django/git_wiki/templates/git_wiki/base.html | 2 +- bn_django/settings.py | 12 ++++++------ 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bn_django/git_browse/settings.py b/bn_django/git_browse/settings.py index 87b957d..8e63667 100644 --- a/bn_django/git_browse/settings.py +++ b/bn_django/git_browse/settings.py @@ -1,2 +1,2 @@ # fill path to the git command -GITCOMMAND = '/usr/local/bin/git' +GITCOMMAND = '/usr/bin/git' diff --git a/bn_django/git_browse/templates/git_browse/base.html b/bn_django/git_browse/templates/git_browse/base.html index 848a06b..611d11d 100644 --- a/bn_django/git_browse/templates/git_browse/base.html +++ b/bn_django/git_browse/templates/git_browse/base.html @@ -2,7 +2,7 @@ {% block stylesheets %} {{ block.super }} - + {% endblock %} {% block path %} diff --git a/bn_django/git_wiki/settings.py b/bn_django/git_wiki/settings.py index 965ac26..b94d318 100644 --- a/bn_django/git_wiki/settings.py +++ b/bn_django/git_wiki/settings.py @@ -1,13 +1,13 @@ # full path to directory holding the wiki repository (or sys links to # the repositories) -GITWIKI_BASE = '/home/bnewbold/knowledge/' +GITWIKI_BASE = '/srv/git/' # leave this blank (NO WHITE SPACE) unless you're using a bare repo -GITWIKI_NAME = '' +GITWIKI_NAME = 'knowledge' # fill path to the git command -GITCOMMAND = '/usr/local/bin/git' +GITCOMMAND = '/usr/bin/git' GITWIKI_DIR = str(GITWIKI_BASE) + '/' + str(GITWIKI_NAME) + '.git' GITPREFIX = 'cd ' +str(GITWIKI_BASE) + '; ' + str(GITCOMMAND) + ' --git-dir=' \ diff --git a/bn_django/git_wiki/templates/git_wiki/base.html b/bn_django/git_wiki/templates/git_wiki/base.html index 9277037..532fde3 100644 --- a/bn_django/git_wiki/templates/git_wiki/base.html +++ b/bn_django/git_wiki/templates/git_wiki/base.html @@ -2,7 +2,7 @@ {% block stylesheets %} {{ block.super }} - + {% endblock %} {% block path %} 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