Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous authored and anandology committed Jan 5, 2011
1 parent 8bf7e1b commit 1ab7899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skeleton/index.md
Expand Up @@ -29,6 +29,7 @@ Here's the skeleton of a typical web.py app (as of 0.2):
web.config.db_parameters = dict(dbn='postgres', db='appname', user='username', pw='')
web.webapi.internalerror = web.debugerror
middleware = [web.reloader]
cache = False

## db.py

Expand All @@ -41,8 +42,9 @@ Here's the skeleton of a typical web.py app (as of 0.2):

import web
import db
import config

render = web.template.render('templates/')
render = web.template.render('templates/', cache=config.cache)

def listing(**k):
l = db.listing(**k)
Expand Down

0 comments on commit 1ab7899

Please sign in to comment.