Skip to content

Instantly share code, notes, and snippets.

@amcgregor
Created February 18, 2010 20:15
Show Gist options
  • Save amcgregor/308011 to your computer and use it in GitHub Desktop.
Save amcgregor/308011 to your computer and use it in GitHub Desktop.
Cleaned up Wiki example, step 2.
# encoding: utf8
"""Web application root controller."""
import web.core
import datetime
from megawiki import model as db
__all__ = ['RootController']
class RootController(web.core.Controller):
def index(self):
raise web.core.http.HTTPSeeOther(location='/WikiHome')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment