Created
July 25, 2013 23:22
-
-
Save renatooliveira/6084705 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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