1.1 --- a/examples/Django/calendarapp.py Sun Jan 15 23:21:34 2006 +0000
1.2 +++ b/examples/Django/calendarapp.py Sun Jan 15 23:22:09 2006 +0000
1.3 @@ -1,6 +1,6 @@
1.4 #!/usr/bin/env python
1.5
1.6 -from WebStack.Adapters import Django
1.7 +from WebStack.Adapters.Django import deploy
1.8 from Calendar import CalendarResource
1.9
1.10 # Choose or customise one of the following if the example fails.
1.11 @@ -8,7 +8,6 @@
1.12 resource = CalendarResource()
1.13 #resource = CalendarResource("iso-8859-1")
1.14
1.15 -def calendar(request, *args):
1.16 - return Django.respond(request, resource, handle_errors=0)
1.17 +calendar = deploy(resource, handle_errors=0)
1.18
1.19 # vim: tabstop=4 expandtab shiftwidth=4