51 lines
1.7 KiB
Python
51 lines
1.7 KiB
Python
|
EXPIRATION = 60 * 60 # logout after 60 minutes of inactivity
|
||
|
CHECK_VERSION = True
|
||
|
WEB2PY_URL = 'http://web2py.com'
|
||
|
WEB2PY_VERSION_URL = WEB2PY_URL + '/examples/default/version'
|
||
|
|
||
|
###########################################################################
|
||
|
# Preferences for EditArea
|
||
|
# the user-interface feature that allows you to edit files in your web
|
||
|
# browser.
|
||
|
|
||
|
# if demo mode is True then admin works readonly and does not require login
|
||
|
DEMO_MODE = False
|
||
|
|
||
|
# if visible_apps is not empty only listed apps will be accessible
|
||
|
FILTER_APPS = []
|
||
|
|
||
|
# To upload on google app engine this has to point to the proper appengine
|
||
|
# config file
|
||
|
import os
|
||
|
# extract google_appengine_x.x.x.zip to web2py root directory
|
||
|
#GAE_APPCFG = os.path.abspath(os.path.join('appcfg.py'))
|
||
|
# extract google_appengine_x.x.x.zip to applications/admin/private/
|
||
|
GAE_APPCFG = os.path.abspath(os.path.join('/usr/local/bin/appcfg.py'))
|
||
|
|
||
|
# To use web2py as a teaching tool, set MULTI_USER_MODE to True
|
||
|
MULTI_USER_MODE = False
|
||
|
EMAIL_SERVER = 'localhost'
|
||
|
EMAIL_SENDER = 'professor@example.com'
|
||
|
EMAIL_LOGIN = None
|
||
|
|
||
|
# configurable twitterbox, set to None/False to suppress
|
||
|
TWITTER_HASH = "web2py"
|
||
|
|
||
|
# parameter for downloading LAYOUTS
|
||
|
LAYOUTS_APP = 'http://web2py.com/layouts'
|
||
|
#LAYOUTS_APP = 'http://127.0.0.1:8000/layouts'
|
||
|
|
||
|
|
||
|
# parameter for downloading PLUGINS
|
||
|
PLUGINS_APP = 'http://web2py.com/plugins'
|
||
|
#PLUGINS_APP = 'http://127.0.0.1:8000/plugins'
|
||
|
|
||
|
# set the language
|
||
|
if 'adminLanguage' in request.cookies and not (request.cookies['adminLanguage'] is None):
|
||
|
T.force(request.cookies['adminLanguage'].value)
|
||
|
|
||
|
#set static_version
|
||
|
from gluon.settings import global_settings
|
||
|
response.static_version = global_settings.web2py_version.split('-')[0]
|
||
|
response.static_version_urls = True
|