forked from MechanisM/imaginationforpeople
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site_settings.py.tests
50 lines (41 loc) · 1.6 KB
/
site_settings.py.tests
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
# Sample site configuration
# Edit as needed
DEBUG = True
TEMPLATE_DEBUG = True
SOUTH_TESTS_MIGRATE = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'imaginationforpeople', # Or path to database file if using sqlite3.
'USER': 'postgres', # Not used with sqlite3.
'PASSWORD': '', # 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 you want to run tests under sqlite, uncomment the following (but beware
# that there ARE occasional differences between postgres and sqlite.
'''
import sys
if 'test' in sys.argv:
DATABASES['default'] = {'ENGINE': 'django.db.backends.sqlite3'}
'''
# 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/"
MEDIA_URL = 'http://imaginationforpeople.org/site_media/'
FACEBOOK_APP_ID = "TO_COMPLETE"
FACEBOOK_API_SECRET = "TO_COMPLETE"
GOOGLE_OAUTH2_CLIENT_ID = "TO_COMPLETE"
GOOGLE_OAUTH2_CLIENT_SECRET = "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',
}