Project

General

Profile

Statistics
| Branch: | Revision:

root / crm / crm / settings.py @ 7646a522

History | View | Annotate | Download (5.18 KB)

1
#er Django settings for crm project.
2

    
3
DEBUG = True
4
TEMPLATE_DEBUG = DEBUG
5

    
6
AUTH_PROFILE_MODULE = 'robocrm.RoboUser'
7

    
8
ADMINS = (
9
    ('Julian Binder', 'jabinder@andrew.cmu.edu'),
10
)
11

    
12
MANAGERS = ADMINS
13

    
14
DATABASES = {
15
    'default': {
16
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
17
        'NAME': 'crm',                      # Or path to database file if using sqlite3.
18
        'USER': 'crmuser',                      # Not used with sqlite3.
19
        'PASSWORD': 'baseball',                  # Not used with sqlite3.
20
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
21
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
22
    }
23
}
24

    
25
# Local time zone for this installation. Choices can be found here:
26
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
27
# although not all choices may be available on all operating systems.
28
# In a Windows environment this must be set to your system time zone.
29
TIME_ZONE = 'America/New_York'
30

    
31
# Language code for this installation. All choices can be found here:
32
# http://www.i18nguy.com/unicode/language-identifiers.html
33
LANGUAGE_CODE = 'en-us'
34

    
35
SITE_ID = 1
36

    
37
# If you set this to False, Django will make some optimizations so as not
38
# to load the internationalization machinery.
39
USE_I18N = True
40

    
41
# If you set this to False, Django will not format dates, numbers and
42
# calendars according to the current locale.
43
USE_L10N = True
44

    
45
# If you set this to False, Django will not use timezone-aware datetimes.
46
USE_TZ = True
47

    
48
# Absolute filesystem path to the directory that will hold user-uploaded files.
49
# Example: "/home/media/media.lawrence.com/media/"
50
MEDIA_ROOT = ''
51

    
52
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
53
# trailing slash.
54
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
55
MEDIA_URL = ''
56

    
57
# Absolute path to the directory static files should be collected to.
58
# Don't put anything in this directory yourself; store your static files
59
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
60
# Example: "/home/media/media.lawrence.com/static/"
61
STATIC_ROOT = ''
62

    
63
# URL prefix for static files.
64
# Example: "http://media.lawrence.com/static/"
65
STATIC_URL = '/static/'
66

    
67
# Additional locations of static files
68
STATICFILES_DIRS = (
69
    # Put strings here, like "/home/html/static" or "C:/www/django/static".
70
    # Always use forward slashes, even on Windows.
71
    # Don't forget to use absolute paths, not relative paths.
72
)
73

    
74
# List of finder classes that know how to find static files in
75
# various locations.
76
STATICFILES_FINDERS = (
77
    'django.contrib.staticfiles.finders.FileSystemFinder',
78
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
79
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
80
)
81

    
82
# Make this unique, and don't share it with anybody.
83
SECRET_KEY = '1!wcgl7t8m61!dpvyzlva(8o_ylx$+v(5g+devc^s4%a&0qfxa'
84

    
85
# List of callables that know how to import templates from various sources.
86
TEMPLATE_LOADERS = (
87
    'django.template.loaders.filesystem.Loader',
88
    'django.template.loaders.app_directories.Loader',
89
#     'django.template.loaders.eggs.Loader',
90
)
91

    
92
MIDDLEWARE_CLASSES = (
93
    'django.middleware.common.CommonMiddleware',
94
    'django.contrib.sessions.middleware.SessionMiddleware',
95
    'django.middleware.csrf.CsrfViewMiddleware',
96
    'django.contrib.auth.middleware.AuthenticationMiddleware',
97
    'django.contrib.messages.middleware.MessageMiddleware',
98
    # Uncomment the next line for simple clickjacking protection:
99
    # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
100
)
101

    
102
ROOT_URLCONF = 'crm.urls'
103

    
104
# Python dotted path to the WSGI application used by Django's runserver.
105
WSGI_APPLICATION = 'crm.wsgi.application'
106

    
107
TEMPLATE_DIRS = (
108
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
109
    # Always use forward slashes, even on Windows.
110
    # Don't forget to use absolute paths, not relative paths.
111
)
112

    
113
INSTALLED_APPS = (
114
    'django.contrib.auth',
115
    'django.contrib.contenttypes',
116
    'django.contrib.sessions',
117
    'django.contrib.sites',
118
    'django.contrib.messages',
119
    'django.contrib.staticfiles',
120
    'south',
121
    'robocrm',
122
    # Uncomment the next line to enable the admin:
123
    'django.contrib.admin',
124
    # Uncomment the next line to enable admin documentation:
125
    # 'django.contrib.admindocs',
126
)
127

    
128
# A sample logging configuration. The only tangible logging
129
# performed by this configuration is to send an email to
130
# the site admins on every HTTP 500 error when DEBUG=False.
131
# See http://docs.djangoproject.com/en/dev/topics/logging for
132
# more details on how to customize your logging configuration.
133
LOGGING = {
134
    'version': 1,
135
    'disable_existing_loggers': False,
136
    'filters': {
137
        'require_debug_false': {
138
            '()': 'django.utils.log.RequireDebugFalse'
139
        }
140
    },
141
    'handlers': {
142
        'mail_admins': {
143
            'level': 'ERROR',
144
            'filters': ['require_debug_false'],
145
            'class': 'django.utils.log.AdminEmailHandler'
146
        }
147
    },
148
    'loggers': {
149
        'django.request': {
150
            'handlers': ['mail_admins'],
151
            'level': 'ERROR',
152
            'propagate': True,
153
        },
154
    }
155
}