Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (23 sloc) 0.879 kb
d9007b6 Alex Ksikes First commit.
authored
1 # Author: Alex Ksikes
2
3 # This is a sample config file. Complete it and rename the file config.py.
4
5 import web, os
6
7 from app.helpers import misc
8 from app.helpers import utils
9
10 # connect to database
11 db = web.database(dbn='mysql', db='mlss', user='your username', passwd='your password')
12
13 # in development debug error messages and reloader
14 web.config.debug = True
15
16 # in develpment template caching is set to false
17 cache = False
18
19 # global used template functions
20 globals = utils.get_all_functions(misc)
21
22 # the domain where to get the forms from
23 site_domain = 'your website domain'
24
25 # email settings
26 mail_sender = 'MLSS 2009 <noreply@example.com>'
27
28 # set global base template
29 view = web.template.render('app/views', cache=cache, globals=globals)
30
31 # used as a salt
32 encryption_key = 'a random string'
33
34 # in production the internal errors are emailed to us
239e90b Alex Ksikes Added sample data for a demo version.
authored
35 web.config.email_errors = ''
Something went wrong with that request. Please try again.