root/ossiedev/branches/jsnyder/trunk/tools/cornetApps/settingsWeb.py @ 11070

Revision 11070, 5.8 KB (checked in by edent, 3 years ago)

add more documentation

Line 
1# Django settings for cornetApps project on the *webserver*
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': '/home/webdemo/cornetApps/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 = '/home/webdemo/cornetApps/'
50
51# URL that handles the media served from MEDIA_ROOT. Make sure to use a
52# trailing slash.
53# Base URL for website to reference anchors
54# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
55MEDIA_URL = 'http://cornet.wireless.vt.edu/~webdemo/django/'
56URL_PREFIX = '~webdemo/django/'
57
58# Absolute path to the directory static files should be collected to.
59# Don't put anything in this directory yourself; store your static files
60# in apps' "static/" subdirectories and in STATICFILES_DIRS.
61# Example: "/home/media/media.lawrence.com/static/"
62#STATIC_ROOT = '/home/ossie/workspace/cornetApps/static/'
63STATIC_ROOT = 'static/'   #webserver
64
65# URL prefix for static files.
66# Example: "http://media.lawrence.com/static/"
67STATIC_URL = 'http://cornet.wireless.vt.edu/~webdemo/django/static/' #webserver
68#STATIC_URL = '/static/'
69
70#Login redirect url that directs user to next page after logging in
71LOGIN_REDIRECT_URL = 'http://cornet.wireless.vt.edu/~webdemo/django/ossie'
72
73# URL prefix for admin static files -- CSS, JavaScript and images.
74# Make sure to use a trailing slash.
75# Examples: "http://foo.com/static/admin/", "/static/admin/".
76ADMIN_MEDIA_PREFIX = '/static/admin/'
77
78# Additional locations of static files
79STATICFILES_DIRS = (
80    # Put strings here, like "/home/html/static" or "C:/www/django/static".
81    # Always use forward slashes, even on Windows.
82    # Don't forget to use absolute paths, not relative paths.
83        #'/home/ossie/workspace/cornetApps/HtmlPages/static/',
84        '/home/webdemo/cornetApps/HtmlPages/static/',  #webserver
85)
86
87# List of finder classes that know how to find static files in
88# various locations.
89STATICFILES_FINDERS = (
90    'django.contrib.staticfiles.finders.FileSystemFinder',
91    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
92    #'django.contrib.staticfiles.finders.DefaultStorageFinder',
93)
94
95# Make this unique, and don't share it with anybody.
96SECRET_KEY = 'xxnv0%@di9(x1h&h(2^z90g1q3zghp(0)-x=!!6xx)xt*y@902'
97
98# List of callables that know how to import templates from various sources.
99TEMPLATE_LOADERS = (
100    'django.template.loaders.filesystem.Loader',
101    'django.template.loaders.app_directories.Loader',
102#     'django.template.loaders.eggs.Loader',
103)
104
105MIDDLEWARE_CLASSES = (
106    'django.middleware.common.CommonMiddleware',
107    'django.contrib.sessions.middleware.SessionMiddleware',
108    'django.middleware.csrf.CsrfViewMiddleware',
109    'django.contrib.auth.middleware.AuthenticationMiddleware',
110    'django.contrib.messages.middleware.MessageMiddleware',
111)
112
113ROOT_URLCONF = 'cornetApps.urls'
114#ROOT_URLCONF = 'urls'
115
116TEMPLATE_DIRS = (
117        "templates",
118        '/home/webdemo/cornetApps/templates', #webserver
119        'templates/HtmlPages',
120        'templates/WebDash',
121        'templates/DomainMan',
122    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
123    # Always use forward slashes, even on Windows.
124    # Don't forget to use absolute paths, not relative paths.
125)
126
127INSTALLED_APPS = (
128    'django.contrib.auth',
129    'django.contrib.contenttypes',
130    'django.contrib.sessions',
131    'django.contrib.sites',
132    'django.contrib.messages',
133    'django.contrib.staticfiles',
134        'HtmlPages',
135        'DomainMan',
136    #'WebDash',
137    # Uncomment the next line to enable the admin:
138    # 'django.contrib.admin',
139    # Uncomment the next line to enable admin documentation:
140    # 'django.contrib.admindocs',
141)
142
143#LOGIN_URL = '/login/'
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.