Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add login view to the site

  • Loading branch information...
commit 560737e080d12f19ab29c7fe0f77899cf02ce467 1 parent 19f7f53
@emesik authored
Showing with 14 additions and 0 deletions.
  1. +13 −0 templates/login.html
  2. +1 −0  urls.py
View
13 templates/login.html
@@ -0,0 +1,13 @@
+{% extends 'base.html' %}
+{% block page %}
+<div class="container_12">
+ <div class="span_12">
+ <form method="post">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <input type="hidden" name="next" value="/" />
+ <button type="submit">Log in</button>
+ </form>
+ </div>
+</div>
+{% endblock %}
View
1  urls.py
@@ -5,6 +5,7 @@
urlpatterns = patterns('',
(r'^$', RedirectView.as_view(url=u'/wiki/Main_Page')),
(r'^wiki/', include('djiki.urls')),
+ (r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
)
if settings.DEBUG:
Please sign in to comment.
Something went wrong with that request. Please try again.