Source

bcklutracker / bcklutracker / settings.py


import os
from datetime import timedelta

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
)
DEBUG = True
DEBUG_TEMPLATE = True

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'    # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = os.path.join(os.path.dirname(__file__), 'bcklutracker.db')
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.

TIME_ZONE = 'Europe/Vienna'

LANGUAGE_CODE = 'de-at'

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), '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).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

# 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 = '/admin_media/'

# NOTICE: You have to set the SECRET_KEY in the local_settings.py

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

ROOT_URLCONF = 'bcklutracker.urls'


INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',
    'bcklutracker.main',
)

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

TEMPLATE_DIRS = (
    os.path.join(os.path.dirname(__file__), "templates"),
)

#-----------------------------------------------------------------------------
# App-specific settings
COUCHDB_SERVER = 'http://localhost:5984'
COUCHDB_DATABASE = 'database_name'
PROVIDERS = []
# PROVIDERS = [
#         ('twitter', {'hashtag': 'bcklu', 'interval': timedelta(seconds=120)}),
#         ('flickr', {'tag': 'bcklu', 'api_key': 'some_api_key', 'interval': timedelta(seconds=60)}),
#         ]
ITEMS_PER_PAGE = 10 
#-----------------------------------------------------------------------------

try:
    from bcklutracker.local_settings import *
except ImportError, e:
    pass