alexksikes / wikitrivia

The trivia game freshly generated from Wikipedia articles.

wikitrivia / config_example.py
100644 20 lines (13 sloc) 0.461 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import web, os
 
# connect to database
db = web.database(dbn='mysql', db='wikitrivia', user='user', passwd='password')
 
# in development debug error messages and reloader
web.config.debug = True
 
# in develpment template caching is set to false
cache = False
 
# set global base template
view = web.template.render('app/views', cache=cache)
 
# used to encrypt the answer
encryption_key = 'a random string'
 
# your yahoo app id
yahoo_appid = ''