thirdparty/google_appengine/lib/django/examples/hello/urls.py
author Todd Larsen <tlarsen@google.com>
Tue, 20 Jan 2009 20:04:21 +0000
changeset 844 b55c68d25b35
parent 109 620f9b141567
permissions -rwxr-xr-x
Make getToSLink() an actual method for re-use by others. Uses the views.helper.redirects module to create the /document/show path, instead of hard-coding it as a format string. Patch by: Todd Larsen Review by: to-be-reviewed

from django.conf.urls.defaults import *

urlpatterns = patterns('examples.hello.views',
    (r'^html/$', 'hello_html'),
    (r'^text/$', 'hello_text'),
    (r'^write/$', 'hello_write'),
    (r'^metadata/$', 'metadata'),
    (r'^getdata/$', 'get_data'),
    (r'^postdata/$', 'post_data'),
)