Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
etch
nuages
Commits
bf3b08a2
Commit
bf3b08a2
authored
Jun 13, 2010
by
christophe siraut
Browse files
Amélioration de la gestion des nouveaux inscrits
parent
f64afa89
Changes
2
Hide whitespace changes
Inline
Side-by-side
sondage/userviews.py
View file @
bf3b08a2
...
...
@@ -9,7 +9,7 @@ def register(request):
form
=
UserCreationForm
(
request
.
POST
)
if
form
.
is_valid
():
new_user
=
form
.
save
()
return
HttpResponseRedirect
(
"/user/
login/
"
)
return
HttpResponseRedirect
(
"/user/
success
"
)
else
:
form
=
UserCreationForm
()
return
render_to_response
(
"registration/register.html"
,
{
...
...
templates/registration/success.html
0 → 100644
View file @
bf3b08a2
{% extends "base.html" %}
{% block content %}
<h2>
Success
</h2>
<p
class=
info
>
Your account has been created. You may now
<a
href=
'/user/login'
>
login
</a></p>
<ul>
<li><a
href=
"/user/login"
>
Authenticate
</a></li>
<li><a
href=
"/"
>
Stay anonymous
</a></li>
</ul>
{% endblock %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment