Skip to content

Commit

Permalink
add registration page, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
idleyoungman committed Apr 12, 2012
1 parent 5db6680 commit 2c5f90a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bookmarks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.contrib.auth import logout
from django.contrib.auth.models import User
from django.template import Context
from django.template import Context, RequestContext
from django.template.loader import get_template
from django.shortcuts import render_to_response

Expand Down
4 changes: 4 additions & 0 deletions site_media/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#nav {
float: right;
}

input {
display: block;
}
1 change: 1 addition & 0 deletions templates/registration/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% block head %}User Registration{% endblock %}
{% block content %}
<form method="post" action=".">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="register" />
</form>
Expand Down
1 change: 1 addition & 0 deletions urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
(r'^user/(\w+)/$', user_page),
(r'^login/$', 'django.contrib.auth.views.login'),
(r'^logout/$', logout_page),
(r'^register/$', register_page),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': site_media}),

Expand Down

0 comments on commit 2c5f90a

Please sign in to comment.