[9041] | 1 | # Django settings for persisted project.
|
---|
| 2 |
|
---|
| 3 | import os
|
---|
| 4 | PROJECT_HOME = os.path.dirname(__file__)
|
---|
| 5 |
|
---|
| 6 | DEBUG = True
|
---|
| 7 | TEMPLATE_DEBUG = DEBUG
|
---|
| 8 |
|
---|
| 9 | ADMINS = (
|
---|
[9051] | 10 | ('Example Admin', 'admin@example.org'),
|
---|
[9041] | 11 | )
|
---|
| 12 |
|
---|
| 13 | MANAGERS = ADMINS
|
---|
| 14 |
|
---|
| 15 | DATABASES = {
|
---|
| 16 | 'default': {
|
---|
[9051] | 17 | 'ENGINE': 'django.db.backends.mysql',
|
---|
| 18 | 'NAME': 'project_heatmap',
|
---|
| 19 | 'USER': 'root',
|
---|
| 20 | 'PASSWORD': 'password',
|
---|
| 21 | 'HOST': 'localhost',
|
---|
| 22 | 'PORT': '3306',
|
---|
[9041] | 23 | }
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | # Local time zone for this installation. Choices can be found here:
|
---|
| 27 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
---|
| 28 | # although not all choices may be available on all operating systems.
|
---|
| 29 | # If running in a Windows environment this must be set to the same as your
|
---|
| 30 | # system time zone.
|
---|
| 31 | TIME_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
|
---|
| 35 | LANGUAGE_CODE = 'en-us'
|
---|
| 36 |
|
---|
| 37 | SITE_ID = 1
|
---|
| 38 |
|
---|
| 39 | # If you set this to False, Django will make some optimizations so as not
|
---|
| 40 | # to load the internationalization machinery.
|
---|
| 41 | USE_I18N = True
|
---|
| 42 |
|
---|
| 43 | # Absolute path to the directory that holds media.
|
---|
| 44 | # Example: "/home/media/media.lawrence.com/"
|
---|
| 45 | MEDIA_ROOT = ''
|
---|
| 46 |
|
---|
| 47 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
---|
| 48 | # trailing slash if there is a path component (optional in other cases).
|
---|
| 49 | # Examples: "http://media.lawrence.com", "http://example.com/media/"
|
---|
| 50 | MEDIA_URL = ''
|
---|
| 51 |
|
---|
| 52 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
|
---|
| 53 | # trailing slash.
|
---|
| 54 | # Examples: "http://foo.com/media/", "/media/".
|
---|
| 55 | ADMIN_MEDIA_PREFIX = '/media/'
|
---|
| 56 |
|
---|
[9139] | 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 | # URL prefix for admin static files -- CSS, JavaScript and images.
|
---|
| 68 | # Make sure to use a trailing slash.
|
---|
| 69 | # Examples: "http://foo.com/static/admin/", "/static/admin/".
|
---|
| 70 | ADMIN_MEDIA_PREFIX = '/static/admin/'
|
---|
| 71 |
|
---|
| 72 | # Additional locations of static files
|
---|
| 73 | STATICFILES_DIRS = (
|
---|
| 74 | PROJECT_HOME + '/static',
|
---|
| 75 | # Put strings here, like "/home/html/static" or "C:/www/django/static".
|
---|
| 76 | # Always use forward slashes, even on Windows.
|
---|
| 77 | # Don't forget to use absolute paths, not relative paths.
|
---|
| 78 | )
|
---|
| 79 |
|
---|
| 80 | # List of finder classes that know how to find static files in
|
---|
| 81 | # various locations.
|
---|
| 82 | STATICFILES_FINDERS = (
|
---|
| 83 | 'django.contrib.staticfiles.finders.FileSystemFinder',
|
---|
| 84 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
---|
| 85 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
---|
| 86 | )
|
---|
| 87 |
|
---|
[9041] | 88 | # Make this unique, and don't share it with anybody.
|
---|
| 89 | SECRET_KEY = '=wg@x19kr@26sibiaynb9ax5ddp1&yu^+$3n++^_lz1ms80syb'
|
---|
| 90 |
|
---|
| 91 | # List of callables that know how to import templates from various sources.
|
---|
| 92 | TEMPLATE_LOADERS = (
|
---|
| 93 | 'django.template.loaders.filesystem.load_template_source',
|
---|
| 94 | 'django.template.loaders.app_directories.load_template_source',
|
---|
[9051] | 95 | 'django.template.loaders.eggs.load_template_source',
|
---|
[9041] | 96 | )
|
---|
| 97 |
|
---|
| 98 | MIDDLEWARE_CLASSES = (
|
---|
| 99 | 'django.middleware.common.CommonMiddleware',
|
---|
| 100 | 'django.contrib.sessions.middleware.SessionMiddleware',
|
---|
| 101 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
|
---|
| 102 | )
|
---|
| 103 |
|
---|
[9139] | 104 | ROOT_URLCONF = 'urls'
|
---|
[9041] | 105 |
|
---|
| 106 | TEMPLATE_DIRS = (
|
---|
| 107 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
---|
| 108 | # Always use forward slashes, even on Windows.
|
---|
[9051] | 109 | # Don't forget to use absolute paths, not relative paths.
|
---|
[9041] | 110 | os.path.join(PROJECT_HOME, 'templates'),
|
---|
| 111 | )
|
---|
| 112 |
|
---|
| 113 | INSTALLED_APPS = (
|
---|
[9051] | 114 | 'django.contrib.admin',
|
---|
[9041] | 115 | 'django.contrib.auth',
|
---|
| 116 | 'django.contrib.contenttypes',
|
---|
| 117 | 'django.contrib.sessions',
|
---|
| 118 | 'django.contrib.sites',
|
---|
| 119 | 'django_extensions',
|
---|
[9139] | 120 | 'gheat',
|
---|
| 121 | 'website',
|
---|
[9041] | 122 | )
|
---|