Browse Source

added MUMBLE_DJANGO_ROOT setting for the base path, so users only need to edit a single config line in order to get started

Natenom/support-murmur-13-1446181288462
work 16 years ago
parent
commit
3b18eb75af
  1. 18
      pyweb/settings.py

18
pyweb/settings.py

@ -1,5 +1,17 @@
# Django settings for mumble_django project. # Django settings for mumble_django project.
# ***************************************************************
# * The only setting you normally need to alter is this path. *
# * Set this to the path where you extracted mumble-django. *
MUMBLE_DJANGO_ROOT = '/home/mistagee/mumble-django/hgrep';
# * For a basic installation, this is all you need to edit in *
# * this file, the rest will be handled automatically! *
# * *
# * DO NOT CHANGE ANYTHING ELSE IN THIS FILE UNLESS YOU KNOW *
# * WHAT YOU ARE DOING! *
# * *
# ***************************************************************
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
@ -10,7 +22,7 @@ ADMINS = (
MANAGERS = ADMINS MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = '/tmp/mumble-django.db3' # Or path to database file if using sqlite3.
DATABASE_NAME = MUMBLE_DJANGO_ROOT+'/mumble-django.db3' # Or path to database file if using sqlite3.
DATABASE_USER = '' # Not used with sqlite3. DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
@ -35,7 +47,7 @@ USE_I18N = True
# Absolute path to the directory that holds media. # Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/" # Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/usr/share/mumble-django/htdocs'
MEDIA_ROOT = MUMBLE_DJANGO_ROOT+'/htdocs'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a # URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases). # trailing slash if there is a path component (optional in other cases).
@ -69,7 +81,7 @@ TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows. # Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths. # Don't forget to use absolute paths, not relative paths.
'/home/mistagee/mumble-django/hgrep/template',
MUMBLE_DJANGO_ROOT+'/template',
) )
INSTALLED_APPS = ( INSTALLED_APPS = (

Loading…
Cancel
Save