Skip to content
GitLab
Menu
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
706822d5
Commit
706822d5
authored
Jun 13, 2010
by
christophe siraut
Browse files
Amélioration de la gestion des nouveaux inscrits
parent
7a42dfd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
sondage/userviews.py
View file @
706822d5
...
...
@@ -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 @
706822d5
{% 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
.
Attach a 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