7
7
8
8
# The OAuth configuration paramters for OSM.
9
9
OSM = {
10
- 'base_url' : 'http://www .openstreetmap.org/api/0.6/' ,
10
+ 'base_url' : 'http://master.apis.dev .openstreetmap.org/api/0.6/' ,
11
11
'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' ,
15
15
'consumer_key' : 'CHANGE THIS' ,
16
- 'consumer_secret' : 'CHANGE THIS '
16
+ 'consumer_secret' : 'CHANGE_THIS '
17
17
}
18
18
19
19
# 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' )
21
21
22
22
# This is the buffer for looking for tasks / challenges near the given
23
23
# lon/lat
35
35
LOGLEVEL = logging .DEBUG if DEBUG else logging .INFO
36
36
37
37
# the default challenge to run
38
- DEFAULT_CHALLENGE = 'CHANGE THIS '
38
+ DEFAULT_CHALLENGE = 'CHANGE_THIS '
39
39
40
40
# IP Whitelist for external API calls
41
41
# (/api/admin/*, /api/stats*, /api/users, /api/challenges)
53
53
# Basic Authentication user / pass
54
54
AUTHORIZED_USER = 'testuser'
55
55
AUTHORIZED_PASSWORD = 'password'
56
+
57
+ # SQLAlchemy defaults
58
+ SQLALCHEMY_TRACK_MODIFICATIONS = False
0 commit comments