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

Revision 11023, 5.5 KB (checked in by edent, 16 months ago)

paramiko

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