forked from MechanisM/imaginationforpeople
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site_settings.py.sample
89 lines (74 loc) · 3.33 KB
/
site_settings.py.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Sample site configuration
# Edit as needed
DEBUG = True
TEMPLATE_DEBUG = True
# Un-comment this to test static files, javascript and css compression, and
# 404 and 500 pages locally:
#COMPRESS_ENABLED = True
# Enables on-page code profiling. To use, uncomment the following and
# add ?prof at the end of the URL to see profiling output.
#DEBUG_PROFILE_MIDDLEWARE_ENABLED == True
### HAYSTACK
# We use Whoosh in dev env and SolR in prod/staging. If you want to force SolR in debug env, set USESOLR = True
USESOLR = False
# Un-comment this to test static files, javascript and css compression, and
# 404 and 500 pages locally:
#COMPRESS_ENABLED = True
DATABASES = {
'default': {
#'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'imaginationforpeople', # Or path to database file if using sqlite3.
'USER': 'imaginationforpeople', # Not used with sqlite3.
'PASSWORD': 'plop', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
# If set, OVERRIDE_CACHE_BACKEND will unconditionally change the cache backends
# to the one set in, in OVERRIDE_CACHE_BACKEND, including when DEBUG=True. This
# is used for two purposes:
# 1- To change the backend in development from the DummyCache backend to debug
# cache problems
# 2- To change the backend in production from the LocMemCache default (typically
# to MemcacheD.
# Default value: None
# Usefull values:
# {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}
# {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}
# {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211',}
#
# OVERRIDE_CACHE_BACKEND = {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211',}
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
# If you're using a dev server, just use '/site_media/'
MEDIA_URL = 'http://imaginationforpeople.org/site_media/'
#Optional, leave None if you don't have/don't want to use a AddThis account.
#Addthis will still work without it
ADDTHIS_USERNAME = None
FACEBOOK_APP_ID = "TO_COMPLETE"
FACEBOOK_API_SECRET = "TO_COMPLETE"
# Optional, leave None if you don't have a google analytics account
GOOGLE_ANALYTICS_ACCOUNT = None #Example: UA-21778007-2
GOOGLE_OAUTH2_CLIENT_ID = "TO_COMPLETE"
GOOGLE_OAUTH2_CLIENT_SECRET = "TO_COMPLETE"
# Geocoder API keys. Enables the corresponding geocoders for location edition if
# present
# MAPQUEST_API_KEY = 'TO_COMPLETE'
# GEONAMES_USERNAME = 'TO_COMPLETE'
## Dynamicsites
DEFAULT_HOST = 'imaginationforpeople.org'
HOSTNAME_REDIRECTS = {
'example.dev': 'example.com',
'example2.dev': 'example2.com',
'other.example2.dev': 'other.example2.com',
}
# Use this for developement aliases
ENV_HOSTNAMES = {
'localhost': 'imaginationforpeople.org',
}
# If you need error reporting via Raven, configure this
# RAVEN_CONFIG = {
# 'dsn': 'http://public:[email protected]/1',
# }