Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
better example settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahk committed Jan 2, 2010
1 parent e1fef6d commit 608eb42
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions robobach/example.settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Django settings for robobach project.
# MAKE YOUR OWN COPY OF THIS named settings.py
import os
this_path = os.path.dirname( os.path.realpath( __file__ ) )
BASE_PATH = os.path.join( this_path, ".." )

DEBUG = True
TEMPLATE_DEBUG = DEBUG
Expand All @@ -10,7 +13,7 @@

MANAGERS = ADMINS

DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = '' # Or path to database file if using sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
Expand All @@ -22,7 +25,7 @@
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'
TIME_ZONE = 'America/Vancouver'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
Expand All @@ -36,7 +39,7 @@

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = ''
MEDIA_ROOT = os.path.join( BASE_PATH, "media/" )

# 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).
Expand All @@ -46,7 +49,7 @@
# 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 = '/media/'
ADMIN_MEDIA_PREFIX = '/admin_media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'e(292y*@mu4zm=szrl&%u%qfa+(v@9ooy*tkrmm^9gj3fowk&#'
Expand All @@ -67,14 +70,15 @@
ROOT_URLCONF = 'robobach.urls'

TEMPLATE_DIRS = (
os.path.join( BASE_PATH, "templates" )
# 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.
)

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
# 'django.contrib.auth',
# 'django.contrib.contenttypes',
# 'django.contrib.sessions',
# 'django.contrib.sites',
)

0 comments on commit 608eb42

Please sign in to comment.