Skip to content

Commit 70a49de

Browse files
committed
update config template
1 parent c01ce24 commit 70a49de

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Diff for: config-example.py

+10-7
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77

88
# The OAuth configuration paramters for OSM.
99
OSM = {
10-
'base_url': 'http://www.openstreetmap.org/api/0.6/',
10+
'base_url': 'http://master.apis.dev.openstreetmap.org/api/0.6/',
1111
'request_token_url':
12-
'https://www.openstreetmap.org/oauth/request_token',
13-
'access_token_url': 'https://www.openstreetmap.org/oauth/access_token',
14-
'authorize_url': 'https://www.openstreetmap.org/oauth/authorize',
12+
'http://master.apis.dev.openstreetmap.org/oauth/request_token',
13+
'access_token_url': 'http://master.apis.dev.openstreetmap.org/oauth/access_token',
14+
'authorize_url': 'http://master.apis.dev.openstreetmap.org/oauth/authorize',
1515
'consumer_key': 'CHANGE THIS',
16-
'consumer_secret': 'CHANGE THIS'
16+
'consumer_secret': 'CHANGE_THIS'
1717
}
1818

1919
# Set debugging mode. This is detected by looking at the 'runserver' argument passed to manage.py
20-
DEBUG = (sys.argv[1] == 'runserver')
20+
DEBUG = (len(sys.argv)>1 and sys.argv[1] == 'runserver')
2121

2222
# This is the buffer for looking for tasks / challenges near the given
2323
# lon/lat
@@ -35,7 +35,7 @@
3535
LOGLEVEL = logging.DEBUG if DEBUG else logging.INFO
3636

3737
# the default challenge to run
38-
DEFAULT_CHALLENGE = 'CHANGE THIS'
38+
DEFAULT_CHALLENGE = 'CHANGE_THIS'
3939

4040
# IP Whitelist for external API calls
4141
# (/api/admin/*, /api/stats*, /api/users, /api/challenges)
@@ -53,3 +53,6 @@
5353
# Basic Authentication user / pass
5454
AUTHORIZED_USER = 'testuser'
5555
AUTHORIZED_PASSWORD = 'password'
56+
57+
# SQLAlchemy defaults
58+
SQLALCHEMY_TRACK_MODIFICATIONS = False

0 commit comments

Comments
 (0)