Skip to content

Commit

Permalink
kailoa
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous authored and anandology committed Jan 5, 2011
1 parent 39d4117 commit b244318
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions upgrade_to_point2.md
@@ -1,7 +1,23 @@
---
layout: default
title: upgrade to point2
title: Upgrade to web.py 0.2
---

# upgrade to point2
# Upgrade to web.py 0.2

If you are migrating form the "one big file" version of web.py to the .2 version, you have to make some changed to your code.

### web.run()

Most importantly, thanks to Guido, change the run line from:

if __name__ == '__main__': web.run(urls, web.reloader)

to:

if __name__ == "__main__": web.run(urls, globals())


### web.config

If you use a db, change `web.db_parameters` and `web.db_printing` to `web.config.db_paramters` and `web.config.db_printing` respectively.

0 comments on commit b244318

Please sign in to comment.