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

Revision 10914, 5.6 KB (checked in by edent, 19 months ago)

rearrange frames

Line 
1# Django settings for cornetApps project.
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 = ''
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 = ''
55
56# Base URL for website to reference anchors
57URL_ROOT = 'http://cornet.wireless.vt.edu/~webdemo/django/'
58
59# Absolute path to the directory static files should be collected to.
60# Don't put anything in this directory yourself; store your static files
61# in apps' "static/" subdirectories and in STATICFILES_DIRS.
62# Example: "/home/media/media.lawrence.com/static/"
63
64STATIC_ROOT = '/home/ossie/workspace/cornetApps/static/'
65#STATIC_ROOT = 'static/'   #webserver
66
67# URL prefix for static files.
68# Example: "http://media.lawrence.com/static/"
69
70#STATIC_URL = 'http://cornet.wireless.vt.edu/~webdemo/django/static/' #webserver
71STATIC_URL = '/static/'
72
73
74# URL prefix for admin static files -- CSS, JavaScript and images.
75# Make sure to use a trailing slash.
76# Examples: "http://foo.com/static/admin/", "/static/admin/".
77ADMIN_MEDIA_PREFIX = '/static/admin/'
78
79# Additional locations of static files
80STATICFILES_DIRS = (
81    # Put strings here, like "/home/html/static" or "C:/www/django/static".
82    # Always use forward slashes, even on Windows.
83    # Don't forget to use absolute paths, not relative paths.
84        '/home/ossie/workspace/cornetApps/HtmlPages/static/',
85        #'/home/webdemo/cornetApps/HtmlPages/static/',  #webserver
86        #'/home/webdemo/cornetApps/WebDemo/static/',
87)
88
89# List of finder classes that know how to find static files in
90# various locations.
91STATICFILES_FINDERS = (
92    'django.contrib.staticfiles.finders.FileSystemFinder',
93    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
94    #'django.contrib.staticfiles.finders.DefaultStorageFinder',
95)
96
97# Make this unique, and don't share it with anybody.
98SECRET_KEY = 'xxnv0%@di9(x1h&h(2^z90g1q3zghp(0)-x=!!6xx)xt*y@902'
99
100# List of callables that know how to import templates from various sources.
101TEMPLATE_LOADERS = (
102    'django.template.loaders.filesystem.Loader',
103    'django.template.loaders.app_directories.Loader',
104#     'django.template.loaders.eggs.Loader',
105)
106
107MIDDLEWARE_CLASSES = (
108    'django.middleware.common.CommonMiddleware',
109    'django.contrib.sessions.middleware.SessionMiddleware',
110    'django.middleware.csrf.CsrfViewMiddleware',
111    'django.contrib.auth.middleware.AuthenticationMiddleware',
112    'django.contrib.messages.middleware.MessageMiddleware',
113)
114
115ROOT_URLCONF = 'cornetApps.urls'
116#ROOT_URLCONF = 'urls'
117
118TEMPLATE_DIRS = (
119        "templates",
120        '/home/webdemo/cornetApps/templates', #webserver
121        'templates/HtmlPages',
122        'templates/WebDash',
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    #'WebDash',
136    # Uncomment the next line to enable the admin:
137    # 'django.contrib.admin',
138    # Uncomment the next line to enable admin documentation:
139    # 'django.contrib.admindocs',
140)
141
142LOGIN_URL = '/login/'
143
144# A sample logging configuration. The only tangible logging
145# performed by this configuration is to send an email to
146# the site admins on every HTTP 500 error.
147# See http://docs.djangoproject.com/en/dev/topics/logging for
148# more details on how to customize your logging configuration.
149LOGGING = {
150    'version': 1,
151    'disable_existing_loggers': False,
152    'handlers': {
153        'mail_admins': {
154            'level': 'ERROR',
155            'class': 'django.utils.log.AdminEmailHandler'
156        }
157    },
158    'loggers': {
159        'django.request': {
160            'handlers': ['mail_admins'],
161            'level': 'ERROR',
162            'propagate': True,
163        },
164    }
165}
Note: See TracBrowser for help on using the browser.