From 2d21507c63b0a37fbfc36fbbe2d33f85190b61e8 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 21 Mar 2007 09:40:24 -0700 Subject: FINALLY fixed settings problem cross server By having settings.py.example files the content is pushed and bundled with releases. On dev platform i'll symlink settings.py to these files, on other platforms have seperate settings.py --- bn_django/git_wiki/settings.py | 14 -------------- bn_django/git_wiki/settings.py.example | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 14 deletions(-) delete mode 100644 bn_django/git_wiki/settings.py create mode 100644 bn_django/git_wiki/settings.py.example (limited to 'bn_django/git_wiki') diff --git a/bn_django/git_wiki/settings.py b/bn_django/git_wiki/settings.py deleted file mode 100644 index 965ac26..0000000 --- a/bn_django/git_wiki/settings.py +++ /dev/null @@ -1,14 +0,0 @@ - -# full path to directory holding the wiki repository (or sys links to -# the repositories) -GITWIKI_BASE = '/home/bnewbold/knowledge/' - -# leave this blank (NO WHITE SPACE) unless you're using a bare repo -GITWIKI_NAME = '' - -# fill path to the git command -GITCOMMAND = '/usr/local/bin/git' - -GITWIKI_DIR = str(GITWIKI_BASE) + '/' + str(GITWIKI_NAME) + '.git' -GITPREFIX = 'cd ' +str(GITWIKI_BASE) + '; ' + str(GITCOMMAND) + ' --git-dir=' \ - + str(GITWIKI_DIR) diff --git a/bn_django/git_wiki/settings.py.example b/bn_django/git_wiki/settings.py.example new file mode 100644 index 0000000..8257277 --- /dev/null +++ b/bn_django/git_wiki/settings.py.example @@ -0,0 +1,17 @@ + +# full path to directory holding the wiki repository (or sys links to +# the repositories) +GITWIKI_BASE = '/home/bnewbold/knowledge/' + +EQU_FOLDER = '/home/bnewbold/bn-project/static/latex2png/' +EQU_PREFIX = '/static/latex2png/' + +# leave this blank (NO WHITE SPACE) unless you're using a bare repo +GITWIKI_NAME = '' + +# fill path to the git command +GITCOMMAND = '/usr/local/bin/git' + +GITWIKI_DIR = str(GITWIKI_BASE) + '/' + str(GITWIKI_NAME) + '.git' +GITPREFIX = 'cd ' +str(GITWIKI_BASE) + '; ' + str(GITCOMMAND) + ' --git-dir=' \ + + str(GITWIKI_DIR) -- cgit v1.2.3