-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfig_example.py
More file actions
35 lines (23 loc) · 879 Bytes
/
config_example.py
File metadata and controls
35 lines (23 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Author: Alex Ksikes
# This is a sample config file. Complete it and rename the file config.py.
import web, os
from app.helpers import misc
from app.helpers import utils
# connect to database
db = web.database(dbn='mysql', db='mlss', user='your username', passwd='your password')
# in development debug error messages and reloader
web.config.debug = True
# in develpment template caching is set to false
cache = False
# global used template functions
globals = utils.get_all_functions(misc)
# the domain where to get the forms from
site_domain = 'your website domain'
# email settings
mail_sender = 'MLSS 2009 <noreply@example.com>'
# set global base template
view = web.template.render('app/views', cache=cache, globals=globals)
# used as a salt
encryption_key = 'a random string'
# in production the internal errors are emailed to us
web.config.email_errors = ''