-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
34 lines (25 loc) · 819 Bytes
/
settings.py
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
# Django settings for autodata project.
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
MIDDLEWARE = (
'httpxforwardedfor.middleware.HttpXForwardedForMiddleware',
)
# Make this unique, and don't share it with anybody.
SECRET_KEY = 'mq%31q+sjj^)m^tvy(klwqw6ksv7du2yzdf9yn78iga*r%8w^t-httpxforwardedfor'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'httpxforwardedfor',
'testapp',
)
STATIC_URL = '/static/'
# Only allow HTTP_X_FORWARDED_FOR, if the request is marked as secure.
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# To only allow change of the REMOTE_ADDR for requests via HTTPS.
# The default is to allow all requests.
TRUST_ONLY_HTTPS_PROXY = True
ROOT_URLCONF = "tests.testapp.urls"