-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
65 lines (55 loc) · 1.69 KB
/
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
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
"""
Created on Oct 15, 2014
@author: ayan
"""
import sys
from datetime import timedelta
DEBUG = True
SECRET_KEY = ''
VERIFY_CERT = True
COLLECT_STATIC_ROOT = 'static/'
COLLECT_STORAGE = 'flask.ext.collect.storage.file'
MAIL_USERNAME = 'PUBSV2_NO_REPLY'
PUB_URL = ''
LOOKUP_URL = ''
SUPERSEDES_URL = ''
BROWSE_URL = ''
BASE_SEARCH_URL = ''
BASE_CITATION_URL = ''
BROWSE_REPLACE = ''
RECAPTCHA_PUBLIC_KEY = '6LfisP0SAAAAAKcg5-a5bEeV4slFfQZr5_7XfqXf' # using google's recaptcha API
RECAPTCHA_PRIVATE_KEY = '' # see RECAPTCHA_PRIVATE_KEY in local_settings.py
WSGI_STR = ''
GOOGLE_ANALYTICS_CODE = ''
JSON_LD_ID_BASE_URL = ''
GOOGLE_WEBMASTER_TOOLS_CODE = 'ertoifsdbnerngdjnasdw9rsdn' # random string, set real code in local_settings.py on prod
ANNOUNCEMENT_BLOCK = ''
LOGGING_ON = False
REPLACE_PUBS_WITH_PUBS_TEST = False
ROBOTS_WELCOME = False
REMEMBER_COOKIE_DURATION = timedelta(days=1)
AUTH_ENDPOINT_URL = ''
PREVIEW_ENDPOINT_URL = ''
LOGIN_PAGE_PATH = ''
if DEBUG:
CONTACT_RECIPIENTS = ['[email protected]', '[email protected]']
else:
CONTACT_RECIPIENTS = ['[email protected]']
try:
from local_settings import *
except ImportError:
pass
try:
from deploy_date import *
except ImportError:
pass
# variables used for testing purposes
nose_testing = sys.argv[0].endswith('nosetests') # returns True if 'nosetests' is a command line argument
if 'lettuce' in sys.argv[0]: # determine if a lettuce is being run
lettuce_testing = True
else:
lettuce_testing = False
if nose_testing or lettuce_testing:
WTF_CSRF_ENABLED = False
TESTING = True
BASE_SEARCH_URL = 'https://pubs-fake.er.usgs.gov/pubs-services/publication/'