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. 28
      pyweb/settings.py

28
pyweb/settings.py

@ -1,5 +1,17 @@
# 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
TEMPLATE_DEBUG = DEBUG
@ -9,12 +21,12 @@ ADMINS = (
MANAGERS = ADMINS
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_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = MUMBLE_DJANGO_ROOT+'/mumble-django.db3' # 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.
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
@ -35,7 +47,7 @@ USE_I18N = True
# Absolute path to the directory that holds media.
# 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
# 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".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
'/home/mistagee/mumble-django/hgrep/template',
MUMBLE_DJANGO_ROOT+'/template',
)
INSTALLED_APPS = (

Loading…
Cancel
Save