1 | EXPIRATION = 60 * 60 # logout after 60 minutes of inactivity |
---|
2 | CHECK_VERSION = True |
---|
3 | WEB2PY_URL = 'http://web2py.com' |
---|
4 | WEB2PY_VERSION_URL = WEB2PY_URL + '/examples/default/version' |
---|
5 | |
---|
6 | ########################################################################### |
---|
7 | # Preferences for EditArea |
---|
8 | # the user-interface feature that allows you to edit files in your web |
---|
9 | # browser. |
---|
10 | |
---|
11 | # if demo mode is True then admin works readonly and does not require login |
---|
12 | DEMO_MODE = False |
---|
13 | |
---|
14 | # if visible_apps is not empty only listed apps will be accessible |
---|
15 | FILTER_APPS = [] |
---|
16 | |
---|
17 | # To upload on google app engine this has to point to the proper appengine |
---|
18 | # config file |
---|
19 | import os |
---|
20 | # extract google_appengine_x.x.x.zip to web2py root directory |
---|
21 | #GAE_APPCFG = os.path.abspath(os.path.join('appcfg.py')) |
---|
22 | # extract google_appengine_x.x.x.zip to applications/admin/private/ |
---|
23 | GAE_APPCFG = os.path.abspath(os.path.join('/usr/local/bin/appcfg.py')) |
---|
24 | |
---|
25 | # To use web2py as a teaching tool, set MULTI_USER_MODE to True |
---|
26 | MULTI_USER_MODE = False |
---|
27 | EMAIL_SERVER = 'localhost' |
---|
28 | EMAIL_SENDER = 'professor@example.com' |
---|
29 | EMAIL_LOGIN = None |
---|
30 | |
---|
31 | # configurable twitterbox, set to None/False to suppress |
---|
32 | TWITTER_HASH = "web2py" |
---|
33 | |
---|
34 | # parameter for downloading LAYOUTS |
---|
35 | LAYOUTS_APP = 'http://web2py.com/layouts' |
---|
36 | #LAYOUTS_APP = 'http://127.0.0.1:8000/layouts' |
---|
37 | |
---|
38 | |
---|
39 | # parameter for downloading PLUGINS |
---|
40 | PLUGINS_APP = 'http://web2py.com/plugins' |
---|
41 | #PLUGINS_APP = 'http://127.0.0.1:8000/plugins' |
---|
42 | |
---|
43 | # set the language |
---|
44 | if 'adminLanguage' in request.cookies and not (request.cookies['adminLanguage'] is None): |
---|
45 | T.force(request.cookies['adminLanguage'].value) |
---|
46 | |
---|
47 | #set static_version |
---|
48 | from gluon.settings import global_settings |
---|
49 | response.static_version = global_settings.web2py_version.split('-')[0] |
---|
50 | response.static_version_urls = True |
---|