1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Django/authapp.py Sat Jan 14 01:53:54 2006 +0000
1.3 @@ -0,0 +1,12 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +from WebStack.Adapters import Django
1.7 +from Auth import AuthResource, AuthAuthenticator
1.8 +
1.9 +resource = AuthResource()
1.10 +authenticator = AuthAuthenticator()
1.11 +
1.12 +def auth(request, *args):
1.13 + return Django.respond(request, resource, authenticator=authenticator, handle_errors=0)
1.14 +
1.15 +# vim: tabstop=4 expandtab shiftwidth=4