Skip to content

Instantly share code, notes, and snippets.

@renatooliveira
Created July 25, 2013 23:22
Show Gist options
  • Select an option

  • Save renatooliveira/6084705 to your computer and use it in GitHub Desktop.

Select an option

Save renatooliveira/6084705 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Login</title>
</head>
<body>
<form action="" method="POST">
{% csrf_token %}
{{ form }}
<input type="submit" value="Login" />
</form>
</body>
</html>
from django.contrib.auth.views import login
def login_view(request):
return login(request, template_name='login.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment