-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings_local.py
76 lines (62 loc) · 2.16 KB
/
settings_local.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
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
"""
Django settings for QED project when developing.
NOTE: Make sure PyCharm django config is pointing to settings_local.py
instead of settings.py
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
from settings import *
import os
import sys
print('settings_local.py')
# Get machine IP address
MACHINE_ID = "developer"
# CTS- Boolean for if it's on Nick's local machine or not..
NICK_LOCAL = False
# Define ENVIRONMENTAL VARIABLES
os.environ.update({
'REST_SERVER_8': 'http://134.67.114.8', # 'http://localhost:64399'
'PROJECT_PATH': PROJECT_ROOT,
'SITE_SKIN': 'EPA', # Leave empty ('') for default skin, 'EPA' for EPA skin
'CONTACT_URL': 'https://www.epa.gov/research/forms/contact-us-about-epa-research',
# 'CTS_TEST_SERVER': 'http://134.67.114.6:8080',
# 'CTS_EPI_SERVER': 'http://134.67.114.8',
# 'CTS_JCHEM_SERVER': 'http://134.67.114.2',
# 'CTS_EFS_SERVER': 'http://134.67.114.2',
# 'CTS_SPARC_SERVER': 'http://204.46.160.69:8080',
# 'CTS_VERSION': '1.8' # now set at settings.py
})
# SECURITY WARNING: don't run with debug turned on in production!
# DEBUG = False
DEBUG = True
TEMPLATE_DEBUG = False
if not os.environ.get('UBERTOOL_REST_SERVER'):
os.environ.update({'UBERTOOL_REST_SERVER': 'http://localhost:7777'}) # Local REST server
print("REST backend = http://localhost:7777")
# SECURITY WARNING: we keep the secret key in a shared dropbox directory
try:
with open('secret_key_django_dropbox.txt') as f:
SECRET_KEY = f.read().strip()
except IOError as e:
print("Could not find secret file")
SECRET_KEY = 'Shhhhhhhhhhhhhhh'
ALLOWED_HOSTS = [
'localhost',
'127.0.0.1'
]
#IS_PUBLIC = True
IS_PUBLIC = False
WSGI_APPLICATION = 'wsgi_local.application'
# Authentication
AUTH = False
LOGIN_URL = '/ubertool/login'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
# Log to console in Debug mode
if DEBUG:
import logging
logging.basicConfig(
level = logging.DEBUG,
format = '%(asctime)s %(levelname)s %(message)s',
)