Commit bf3b08a2 authored by christophe siraut's avatar christophe siraut
Browse files

Amélioration de la gestion des nouveaux inscrits

parent f64afa89
......@@ -9,7 +9,7 @@ def register(request):
form = UserCreationForm(request.POST)
if form.is_valid():
new_user =
return HttpResponseRedirect("/user/login/")
return HttpResponseRedirect("/user/success")
form = UserCreationForm()
return render_to_response("registration/register.html", {
{% extends "base.html" %}
{% block content %}
<p class=info>Your account has been created. You may now <a href='/user/login'>login</a></p>
<li><a href="/user/login">Authenticate</a></li>
<li><a href="/">Stay anonymous</a></li>
{% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment