Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 106 lines (79 sloc) 3.273 kb
a37102b @robneville73 fixing some ajax problems, de-coupling of some urls, etc.
authored
1 # Django settings for OpenEcho project.
717e596 removed hard-coding to project directory.
unknown authored
2 import os.path
3
4 SITE_SRC_ROOT = os.path.dirname(__file__)
80ab308 @robneville73 initial commit to git
authored
5
6 DEBUG = True
7 TEMPLATE_DEBUG = DEBUG
8
9 ADMINS = (
10 # ('Your Name', 'your_email@domain.com'),
11 )
12
13 MANAGERS = ADMINS
14
15 DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
717e596 removed hard-coding to project directory.
unknown authored
16 DATABASE_NAME = os.path.join(SITE_SRC_ROOT, 'sqlite.db') # Or path to database file if using sqlite3.
80ab308 @robneville73 initial commit to git
authored
17 DATABASE_USER = '' # Not used with sqlite3.
18 DATABASE_PASSWORD = '' # Not used with sqlite3.
19 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
20 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
21
bd41fee @robneville73 adding completion of registration framework, forms and views...not worki...
authored
22
23 EMAIL_HOST = 'localhost'
24 EMAIL_PORT = 1025
f3b5693 @robneville73 added registration form (didn't like django's stuff), started implementa...
authored
25
80ab308 @robneville73 initial commit to git
authored
26 # Local time zone for this installation. Choices can be found here:
27 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28 # although not all choices may be available on all operating systems.
29 # If running in a Windows environment this must be set to the same as your
30 # system time zone.
31 TIME_ZONE = 'America/Chicago'
32
33 # Language code for this installation. All choices can be found here:
34 # http://www.i18nguy.com/unicode/language-identifiers.html
35 LANGUAGE_CODE = 'en-us'
36
37 SITE_ID = 1
38
39 # If you set this to False, Django will make some optimizations so as not
40 # to load the internationalization machinery.
41 USE_I18N = True
42
43 # Absolute path to the directory that holds media.
44 # Example: "/home/media/media.lawrence.com/"
717e596 removed hard-coding to project directory.
unknown authored
45 MEDIA_ROOT = os.path.join(SITE_SRC_ROOT, 'media')
80ab308 @robneville73 initial commit to git
authored
46
47 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
48 # trailing slash if there is a path component (optional in other cases).
49 # Examples: "http://media.lawrence.com", "http://example.com/media/"
50 MEDIA_URL = '/media/'
51
52 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
53 # trailing slash.
54 # Examples: "http://foo.com/media/", "/media/".
55 ADMIN_MEDIA_PREFIX = '/media/'
56
57 # Make this unique, and don't share it with anybody.
58 SECRET_KEY = 'sbkag1tb^h*hczub8^a@g12ja=y1_!csy_n8ms1)1opi3uhy+('
59
476d26c @robneville73 added user profile table and AUTH_PROFILE_MODULE setting, re-arranged so...
authored
60
80ab308 @robneville73 initial commit to git
authored
61
62 MIDDLEWARE_CLASSES = (
63 'django.middleware.common.CommonMiddleware',
64 'django.contrib.sessions.middleware.SessionMiddleware',
65 'django.contrib.auth.middleware.AuthenticationMiddleware',
66 )
67
a37102b @robneville73 fixing some ajax problems, de-coupling of some urls, etc.
authored
68 ROOT_URLCONF = 'urls'
80ab308 @robneville73 initial commit to git
authored
69
70 TEMPLATE_DIRS = (
717e596 removed hard-coding to project directory.
unknown authored
71 os.path.join(SITE_SRC_ROOT, "templates")
80ab308 @robneville73 initial commit to git
authored
72 )
73
a401818 @robneville73 more auth fixes, addition of RequestContext to views.
authored
74 TEMPLATE_CONTEXT_PROCESSORS = (
75 "django.core.context_processors.auth",
76 "django.core.context_processors.debug",
77 "django.core.context_processors.i18n",
78 "django.core.context_processors.media",
79 )
80
476d26c @robneville73 added user profile table and AUTH_PROFILE_MODULE setting, re-arranged so...
authored
81 # List of callables that know how to import templates from various sources.
82 TEMPLATE_LOADERS = (
83 'django.template.loaders.filesystem.load_template_source',
84 'django.template.loaders.app_directories.load_template_source',
85 )
86
87 HAYSTACK_SITECONF = 'echo.search_sites'
88 HAYSTACK_SEARCH_ENGINE = 'whoosh'
89 HAYSTACK_WHOOSH_PATH = os.path.join(SITE_SRC_ROOT, 'mysite_index')
90
91 LOGIN_REDIRECT_URL = '/echo/'
6c2222c @robneville73 user profile creation on user create signal, modified registration form ...
authored
92 AUTH_PROFILE_MODULE = 'echo.UserProfile'
476d26c @robneville73 added user profile table and AUTH_PROFILE_MODULE setting, re-arranged so...
authored
93
1377afb @robneville73 more fixin'
authored
94 ROOT_URI = 'http://localhost:8000'
476d26c @robneville73 added user profile table and AUTH_PROFILE_MODULE setting, re-arranged so...
authored
95
80ab308 @robneville73 initial commit to git
authored
96 INSTALLED_APPS = (
97 'django.contrib.auth',
98 'django.contrib.contenttypes',
99 'django.contrib.sessions',
100 'django.contrib.sites',
a37102b @robneville73 fixing some ajax problems, de-coupling of some urls, etc.
authored
101 'echo',
1b61520 @robneville73 adding the start of search, more css styling
authored
102 'django.contrib.admin',
2dd2d21 @robneville73 added Haystack and Whoosh search stuff...not fully integrated yet
authored
103 'haystack',
87fb6bb @robneville73 added voting infrastructure
authored
104 'voting',
80ab308 @robneville73 initial commit to git
authored
105 )
Something went wrong with that request. Please try again.