1 #!/usr/bin/env python 2 3 from WebStack.Adapters.Django import deploy 4 from WebStack.Resources.LoginRedirect import LoginRedirectResource, LoginRedirectAuthenticator 5 from Simple import SimpleResource 6 7 resource = LoginRedirectResource( 8 login_url="http://localhost:8080/django/webstack/login", 9 app_url="http://localhost:8080", 10 resource=SimpleResource(), 11 authenticator=LoginRedirectAuthenticator(secret_key="horses"), 12 anonymous_parameter_name="anonymous", 13 logout_parameter_name="logout", 14 use_logout_redirect=0 15 ) 16 17 simplewithlogin = deploy(resource, handle_errors=1) 18 19 # vim: tabstop=4 expandtab shiftwidth=4