~gary/python-openid/python-openid-2.2.1-patched

« back to all changes in this revision

Viewing changes to examples/djopenid/settings.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2007-11-30 02:46:28 UTC
  • mfrom: (1.1.1 pyopenid-2.0)
  • Revision ID: launchpad@pqm.canonical.com-20071130024628-qktwsew3383iawmq
[rs=SteveA] upgrade to python-openid-2.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Django settings for djopenid project.
 
2
 
 
3
import os
 
4
import sys
 
5
import warnings
 
6
 
 
7
try:
 
8
    import openid
 
9
except ImportError, e:
 
10
    warnings.warn("Could not import OpenID library.  Please consult the djopenid README.")
 
11
    sys.exit(1)
 
12
 
 
13
DEBUG = True
 
14
TEMPLATE_DEBUG = DEBUG
 
15
 
 
16
ADMINS = (
 
17
    # ('Your Name', 'your_email@domain.com'),
 
18
)
 
19
 
 
20
MANAGERS = ADMINS
 
21
 
 
22
DATABASE_ENGINE = 'sqlite3'           # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
 
23
DATABASE_NAME = '/tmp/test.db'             # Or path to database file if using sqlite3.
 
24
DATABASE_USER = ''             # Not used with sqlite3.
 
25
DATABASE_PASSWORD = ''         # Not used with sqlite3.
 
26
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
 
27
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
 
28
 
 
29
# Local time zone for this installation. All choices can be found here:
 
30
# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
 
31
TIME_ZONE = 'America/Chicago'
 
32
 
 
33
# Language code for this installation. All choices can be found here:
 
34
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
 
35
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
 
36
LANGUAGE_CODE = 'en-us'
 
37
 
 
38
SITE_ID = 1
 
39
 
 
40
# Absolute path to the directory that holds media.
 
41
# Example: "/home/media/media.lawrence.com/"
 
42
MEDIA_ROOT = ''
 
43
 
 
44
# URL that handles the media served from MEDIA_ROOT.
 
45
# Example: "http://media.lawrence.com"
 
46
MEDIA_URL = ''
 
47
 
 
48
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
 
49
# trailing slash.
 
50
# Examples: "http://foo.com/media/", "/media/".
 
51
ADMIN_MEDIA_PREFIX = '/media/'
 
52
 
 
53
# Make this unique, and don't share it with anybody.
 
54
SECRET_KEY = 'u^bw6lmsa6fah0$^lz-ct$)y7x7#ag92-z+y45-8!(jk0lkavy'
 
55
 
 
56
# List of callables that know how to import templates from various sources.
 
57
TEMPLATE_LOADERS = (
 
58
    'django.template.loaders.filesystem.load_template_source',
 
59
    'django.template.loaders.app_directories.load_template_source',
 
60
#     'django.template.loaders.eggs.load_template_source',
 
61
)
 
62
 
 
63
MIDDLEWARE_CLASSES = (
 
64
    'django.middleware.common.CommonMiddleware',
 
65
    'django.contrib.sessions.middleware.SessionMiddleware',
 
66
    'django.contrib.auth.middleware.AuthenticationMiddleware',
 
67
    'django.middleware.doc.XViewMiddleware',
 
68
)
 
69
 
 
70
ROOT_URLCONF = 'djopenid.urls'
 
71
 
 
72
TEMPLATE_DIRS = (
 
73
    os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')),
 
74
)
 
75
 
 
76
INSTALLED_APPS = (
 
77
    'django.contrib.contenttypes',
 
78
    'django.contrib.sessions',
 
79
 
 
80
    'djopenid.consumer',
 
81
    'djopenid.server',
 
82
)