root/ossiedev/branches/jsnyder/trunk/tools/cornetApps/settings.py @ 11069

Revision 11069, 5.7 KB (checked in by edent, 2 years ago)

add documentation

Line 
1# Django settings for running cornetApps project *locally*
2
3DEBUG = True
4TEMPLATE_DEBUG = DEBUG
5
6ADMINS = (
7    # ('Your Name', 'your_email@example.com'),
8)
9
10MANAGERS = ADMINS
11
12DATABASES = {
13    'default': {
14        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
15        #'NAME': 'cornetApps.db',                      # Or path to database file if using sqlite3.
16            'NAME': 'cornetApps.db',  #webserver
17        'USER': '',                      # Not used with sqlite3.
18        'PASSWORD': '',                  # Not used with sqlite3.
19        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
20        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
21    }
22}
23
24# Local time zone for this installation. Choices can be found here:
25# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
26# although not all choices may be available on all operating systems.
27# On Unix systems, a value of None will cause Django to use the same
28# timezone as the operating system.
29# If running in a Windows environment this must be set to the same as your
30# system time zone.
31TIME_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
35LANGUAGE_CODE = 'en-us'
36
37SITE_ID = 1
38
39# If you set this to False, Django will make some optimizations so as not
40# to load the internationalization machinery.
41USE_I18N = True
42
43# If you set this to False, Django will not format dates, numbers and
44# calendars according to the current locale
45USE_L10N = True
46
47# Absolute filesystem path to the directory that will hold user-uploaded files.
48# Example: "/home/media/media.lawrence.com/media/"
49MEDIA_ROOT = ''
50
51# URL that handles the media served from MEDIA_ROOT. Make sure to use a
52# trailing slash.
53# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
54MEDIA_URL = 'http://localhost:8000/'
55
56# Absolute path to the directory static files should be collected to.
57# Don't put anything in this directory yourself; store your static files
58# in apps' "static/" subdirectories and in STATICFILES_DIRS.
59# Example: "/home/media/media.lawrence.com/static/"
60
61#STATIC_ROOT = '/home/ossie/workspace/cornetApps/static/'
62STATIC_ROOT = 'static/'   #non-root directory for webserver
63
64# URL prefix for static files.
65# Example: "http://media.lawrence.com/static/"
66#STATIC_URL = 'http://cornet.wireless.vt.edu/~webdemo/django/static/' #webserver
67STATIC_URL = '/static/'
68
69#Login redirect url that directs user to next page after logging in
70LOGIN_REDIRECT_URL = '/ossie'
71
72# URL prefix for admin static files -- CSS, JavaScript and images.
73# Make sure to use a trailing slash.
74# Examples: "http://foo.com/static/admin/", "/static/admin/".
75ADMIN_MEDIA_PREFIX = '/static/admin/'
76
77# Additional locations of static files
78STATICFILES_DIRS = (
79    # Put strings here, like "/home/html/static" or "C:/www/django/static".
80    # Always use forward slashes, even on Windows.
81    # Don't forget to use absolute paths, not relative paths.
82        '/home/ossie/workspace/cornetApps/HtmlPages/static/',
83    '/home/ossie/workspace/cornetApps/DomainMan/static/',
84        #'/home/webdemo/cornetApps/HtmlPages/static/',  #webserver
85        #'/home/webdemo/cornetApps/WebDemo/static/',
86)
87
88# List of finder classes that know how to find static files in
89# various locations.
90STATICFILES_FINDERS = (
91    'django.contrib.staticfiles.finders.FileSystemFinder',
92    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
93    #'django.contrib.staticfiles.finders.DefaultStorageFinder',
94)
95
96# Make this unique, and don't share it with anybody.
97SECRET_KEY = 'xxnv0%@di9(x1h&h(2^z90g1q3zghp(0)-x=!!6xx)xt*y@902'
98
99# List of callables that know how to import templates from various sources.
100TEMPLATE_LOADERS = (
101    'django.template.loaders.filesystem.Loader',
102    'django.template.loaders.app_directories.Loader',
103#     'django.template.loaders.eggs.Loader',
104)
105
106MIDDLEWARE_CLASSES = (
107    'django.middleware.common.CommonMiddleware',
108    'django.contrib.sessions.middleware.SessionMiddleware',
109    'django.middleware.csrf.CsrfViewMiddleware',
110    'django.contrib.auth.middleware.AuthenticationMiddleware',
111    'django.contrib.messages.middleware.MessageMiddleware',
112)
113
114ROOT_URLCONF = 'cornetApps.urls'
115#ROOT_URLCONF = 'urls'
116
117TEMPLATE_DIRS = (
118        "templates",
119        '/home/webdemo/cornetApps/templates', #webserver
120        'templates/HtmlPages',
121        'templates/WebDash',
122        'templates/DomainMan',
123    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
124    # Always use forward slashes, even on Windows.
125    # Don't forget to use absolute paths, not relative paths.
126)
127
128INSTALLED_APPS = (
129    'django.contrib.auth',
130    'django.contrib.contenttypes',
131    'django.contrib.sessions',
132    'django.contrib.sites',
133    'django.contrib.messages',
134    'django.contrib.staticfiles',
135    'HtmlPages',
136    'NodeApp',
137    'DomainMan',
138    #'WebDash',
139    # Uncomment the next line to enable the admin:
140    # 'django.contrib.admin',
141    # Uncomment the next line to enable admin documentation:
142    # 'django.contrib.admindocs',
143)
144
145# A sample logging configuration. The only tangible logging
146# performed by this configuration is to send an email to
147# the site admins on every HTTP 500 error.
148# See http://docs.djangoproject.com/en/dev/topics/logging for
149# more details on how to customize your logging configuration.
150LOGGING = {
151    'version': 1,
152    'disable_existing_loggers': False,
153    'handlers': {
154        'mail_admins': {
155            'level': 'ERROR',
156            'class': 'django.utils.log.AdminEmailHandler'
157        }
158    },
159    'loggers': {
160        'django.request': {
161            'handlers': ['mail_admins'],
162            'level': 'ERROR',
163            'propagate': True,
164        },
165    }
166}
Note: See TracBrowser for help on using the browser.