|
| 1 | +# Django settings for the reporter project. |
| 2 | + |
| 3 | +import os |
| 4 | +import logging |
| 5 | + |
| 6 | +# Make filepaths relative to settings. |
| 7 | +ROOT = os.path.dirname(os.path.abspath(__file__)) |
| 8 | +path = lambda *a: os.path.join(ROOT, *a) |
| 9 | + |
| 10 | +ROOT_PACKAGE = os.path.basename(ROOT) |
| 11 | + |
| 12 | + |
| 13 | +DEBUG = False |
| 14 | +TEMPLATE_DEBUG = DEBUG |
| 15 | + |
| 16 | +LOG_LEVEL = logging.DEBUG |
| 17 | +SYSLOG_TAG = "http_app_reporter" |
| 18 | + |
| 19 | +ADMINS = ( |
| 20 | + # ('Your Name', '[email protected]'), |
| 21 | +) |
| 22 | + |
| 23 | +MANAGERS = ADMINS |
| 24 | + |
| 25 | +DATABASES = { |
| 26 | + 'default': { |
| 27 | + 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
| 28 | + 'NAME': '', # Or path to database file if using sqlite3. |
| 29 | + 'USER': '', # Not used with sqlite3. |
| 30 | + 'PASSWORD': '', # Not used with sqlite3. |
| 31 | + 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
| 32 | + 'PORT': '', # Set to empty string for default. Not used with sqlite3. |
| 33 | + } |
| 34 | +} |
| 35 | + |
| 36 | +# Local time zone for this installation. Choices can be found here: |
| 37 | +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
| 38 | +# although not all choices may be available on all operating systems. |
| 39 | +# On Unix systems, a value of None will cause Django to use the same |
| 40 | +# timezone as the operating system. |
| 41 | +# If running in a Windows environment this must be set to the same as your |
| 42 | +# system time zone. |
| 43 | +TIME_ZONE = 'America/Los_Angeles' |
| 44 | + |
| 45 | +# Language code for this installation. All choices can be found here: |
| 46 | +# http://www.i18nguy.com/unicode/language-identifiers.html |
| 47 | +LANGUAGE_CODE = 'en-us' |
| 48 | + |
| 49 | +SITE_ID = 1 |
| 50 | + |
| 51 | +# If you set this to False, Django will make some optimizations so as not |
| 52 | +# to load the internationalization machinery. |
| 53 | +USE_I18N = True |
| 54 | + |
| 55 | +# If you set this to False, Django will not format dates, numbers and |
| 56 | +# calendars according to the current locale |
| 57 | +USE_L10N = True |
| 58 | + |
| 59 | +# Absolute path to the directory that holds media. |
| 60 | +# Example: "/home/media/media.lawrence.com/" |
| 61 | +MEDIA_ROOT = path('media') |
| 62 | + |
| 63 | +# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
| 64 | +# trailing slash if there is a path component (optional in other cases). |
| 65 | +# Examples: "http://media.lawrence.com", "http://example.com/media/" |
| 66 | +MEDIA_URL = '/media/' |
| 67 | + |
| 68 | +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
| 69 | +# trailing slash. |
| 70 | +# Examples: "http://foo.com/media/", "/media/". |
| 71 | +ADMIN_MEDIA_PREFIX = '/admin-media/' |
| 72 | + |
| 73 | +# Make this unique, and don't share it with anybody. |
| 74 | +SECRET_KEY = '^e*0du@u83$de+==+x$5k%x#+4v7&nm-_sggrr(t!&@kufz87n' |
| 75 | + |
| 76 | +# Templates |
| 77 | + |
| 78 | +TEMPLATE_DIRS = ( |
| 79 | + path('templates'), |
| 80 | +) |
| 81 | + |
| 82 | +# List of callables that know how to import templates from various sources. |
| 83 | +TEMPLATE_LOADERS = ( |
| 84 | + 'django.template.loaders.filesystem.Loader', |
| 85 | + 'django.template.loaders.app_directories.Loader', |
| 86 | +# 'django.template.loaders.eggs.Loader', |
| 87 | +) |
| 88 | + |
| 89 | +MIDDLEWARE_CLASSES = ( |
| 90 | + 'django.middleware.common.CommonMiddleware', |
| 91 | + 'django.contrib.sessions.middleware.SessionMiddleware', |
| 92 | + 'django.middleware.csrf.CsrfViewMiddleware', |
| 93 | + 'django.contrib.auth.middleware.AuthenticationMiddleware', |
| 94 | + 'django.contrib.messages.middleware.MessageMiddleware', |
| 95 | +) |
| 96 | + |
| 97 | +ROOT_URLCONF = 'reporter.urls' |
| 98 | + |
| 99 | +INSTALLED_APPS = ( |
| 100 | + 'django.contrib.auth', |
| 101 | + 'django.contrib.contenttypes', |
| 102 | + 'django.contrib.sessions', |
| 103 | + 'django.contrib.sites', |
| 104 | + 'django.contrib.messages', |
| 105 | + # Uncomment the next line to enable the admin: |
| 106 | + # 'django.contrib.admin', |
| 107 | +) |
0 commit comments