|
| 1 | +import os |
| 2 | +import dj_database_url |
| 3 | +# Django settings for dotdorset project. |
| 4 | + |
| 5 | +DEBUG = False |
| 6 | +TEMPLATE_DEBUG = DEBUG |
| 7 | + |
| 8 | +ADMINS = ( |
| 9 | + # ('Your Name', '[email protected]'), |
| 10 | +) |
| 11 | + |
| 12 | +MANAGERS = ADMINS |
| 13 | + |
| 14 | +# Local time zone for this installation. Choices can be found here: |
| 15 | +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
| 16 | +# although not all choices may be available on all operating systems. |
| 17 | +# If running in a Windows environment this must be set to the same as your |
| 18 | +# system time zone. |
| 19 | +TIME_ZONE = 'Europe/London' |
| 20 | + |
| 21 | +# Language code for this installation. All choices can be found here: |
| 22 | +# http://www.i18nguy.com/unicode/language-identifiers.html |
| 23 | +LANGUAGE_CODE = 'en-gb' |
| 24 | + |
| 25 | +SITE_ID = 1 |
| 26 | + |
| 27 | +# If you set this to False, Django will make some optimizations so as not |
| 28 | +# to load the internationalization machinery. |
| 29 | +USE_I18N = True |
| 30 | + |
| 31 | +DATABASES = {'default': dj_database_url.config(default='sqlite:///dotdorset.sqlite3')} |
| 32 | + |
| 33 | +# Absolute path to the directory that holds media. |
| 34 | +# Example: "/home/media/media.lawrence.com/" |
| 35 | +MEDIA_ROOT = '' |
| 36 | + |
| 37 | +# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
| 38 | +# trailing slash if there is a path component (optional in other cases). |
| 39 | +# Examples: "http://media.lawrence.com", "http://example.com/media/" |
| 40 | +MEDIA_URL = '' |
| 41 | +STATIC_URL = '/static/' |
| 42 | +STATIC_ROOT = 'static/' |
| 43 | + |
| 44 | +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
| 45 | +# trailing slash. |
| 46 | +# Examples: "http://foo.com/media/", "/media/". |
| 47 | +ADMIN_MEDIA_PREFIX = '/static/admin/' |
| 48 | + |
| 49 | +# Make this unique, and don't share it with anybody. |
| 50 | +SECRET_KEY = '&51qozlg8y0pxm5!=-b3=z+03cad&&33bqm34(yl%g!k$!wyl*' |
| 51 | + |
| 52 | +MIDDLEWARE_CLASSES = ( |
| 53 | + 'django.middleware.common.CommonMiddleware', |
| 54 | + 'django.contrib.sessions.middleware.SessionMiddleware', |
| 55 | + 'django.contrib.auth.middleware.AuthenticationMiddleware', |
| 56 | + 'django.contrib.messages.middleware.MessageMiddleware', |
| 57 | + 'django.middleware.doc.XViewMiddleware', |
| 58 | +) |
| 59 | + |
| 60 | +ROOT_URLCONF = 'dotdorset.urls' |
| 61 | + |
| 62 | +TEMPLATE_DIRS = ( |
| 63 | + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
| 64 | + # Always use forward slashes, even on Windows. |
| 65 | + # Don't forget to use absolute paths, not relative paths. |
| 66 | + os.path.dirname(__file__)+'/templates/', |
| 67 | +) |
| 68 | + |
| 69 | +INSTALLED_APPS = ( |
| 70 | + 'django.contrib.auth', |
| 71 | + 'django.contrib.contenttypes', |
| 72 | + 'django.contrib.messages', |
| 73 | + 'django.contrib.sessions', |
| 74 | + 'django.contrib.sites', |
| 75 | + 'django.contrib.admin', |
| 76 | + 'django.contrib.staticfiles', |
| 77 | + 'dotdorset.aggregator', |
| 78 | + 'dotdorset.join', |
| 79 | + 'django_extensions', |
| 80 | + 'gunicorn', |
| 81 | +) |
| 82 | + |
| 83 | +GOOGLE_MAPS_API_KEYS = { |
| 84 | + 'tolerance.markng.co.uk': 'ABQIAAAARLoA22nEYHR0NvOy5PhlABQCULP4XOMyhPd8d_NrQQEO8sT8XBRcnzN6opBIDWJu1LZNj_pwrPsp8A', |
| 85 | + 'dotdorset.org': 'ABQIAAAARLoA22nEYHR0NvOy5PhlABRzb6WlbTpBFu4KRv6X5rYmMGQeVxTcZCqq-phTHsx_Nm7TzbnRRsEd_A', |
| 86 | +} |
| 87 | + |
| 88 | +try: |
| 89 | + import localsettings |
| 90 | +except Exception, e: |
| 91 | + pass |
0 commit comments