Skip to content

Instantly share code, notes, and snippets.

@redspider
Created December 16, 2011 02:02
Show Gist options
  • Save redspider/1484084 to your computer and use it in GitHub Desktop.
Save redspider/1484084 to your computer and use it in GitHub Desktop.
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPForbidden
@view_config(name='login.login', renderer='login/login.jinja2', context=HTTPForbidden)
def login(request):
return {}
@view_config(route_name='login.test', renderer='login/login.jinja2')
def login_test(request):
return {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment