source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/applications/admin/models/0.py

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100755
File size: 1.7 KB
Line 
1EXPIRATION = 60 * 60  # logout after 60 minutes of inactivity
2CHECK_VERSION = True
3WEB2PY_URL = 'http://web2py.com'
4WEB2PY_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
12DEMO_MODE = False
13
14# if visible_apps is not empty only listed apps will be accessible
15FILTER_APPS = []
16
17# To upload on google app engine this has to point to the proper appengine
18# config file
19import 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/
23GAE_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
26MULTI_USER_MODE = False
27EMAIL_SERVER = 'localhost'
28EMAIL_SENDER = 'professor@example.com'
29EMAIL_LOGIN = None
30
31# configurable twitterbox, set to None/False to suppress
32TWITTER_HASH = "web2py"
33
34# parameter for downloading LAYOUTS
35LAYOUTS_APP = 'http://web2py.com/layouts'
36#LAYOUTS_APP = 'http://127.0.0.1:8000/layouts'
37
38
39# parameter for downloading PLUGINS
40PLUGINS_APP = 'http://web2py.com/plugins'
41#PLUGINS_APP = 'http://127.0.0.1:8000/plugins'
42
43# set the language
44if 'adminLanguage' in request.cookies and not (request.cookies['adminLanguage'] is None):
45    T.force(request.cookies['adminLanguage'].value)
46
47#set static_version
48from gluon.settings import global_settings
49response.static_version = global_settings.web2py_version.split('-')[0]
50response.static_version_urls = True
Note: See TracBrowser for help on using the repository browser.