Merge branch 'master' into qwann/move_user
This commit is contained in:
commit
e5bfb0bd0e
4 changed files with 8 additions and 5 deletions
|
@ -37,6 +37,7 @@ chown vagrant: ~vagrant/.bash_profile
|
||||||
cd /vagrant
|
cd /vagrant
|
||||||
|
|
||||||
# Installation des dépendances python
|
# Installation des dépendances python
|
||||||
|
sudo -H pip3 install -U pip
|
||||||
sudo -H -u vagrant pip3 install --user -r requirements.txt
|
sudo -H -u vagrant pip3 install --user -r requirements.txt
|
||||||
sudo -H -u vagrant pip3 install --user -r requirements-devel.txt
|
sudo -H -u vagrant pip3 install --user -r requirements-devel.txt
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Django==1.10
|
Django==1.10.*
|
||||||
Pillow==3.3.0
|
Pillow==3.3.0
|
||||||
psycopg2==2.6.2
|
psycopg2==2.6.2
|
||||||
django-bootstrap-form==3.2.1
|
django-bootstrap-form==3.2.1
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
|
|
||||||
|
|
|
@ -53,11 +53,14 @@ urlpatterns = [
|
||||||
Home.as_view(),
|
Home.as_view(),
|
||||||
name='password_reset_done'),
|
name='password_reset_done'),
|
||||||
# PASS RESET CONFIRM
|
# PASS RESET CONFIRM
|
||||||
url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
|
url('^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/'
|
||||||
|
'(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
|
||||||
auth_views.password_reset_confirm,
|
auth_views.password_reset_confirm,
|
||||||
{
|
{
|
||||||
'template_name': 'users/user_form.html',
|
'template_name': 'user/user_form.html',
|
||||||
'post_reset_redirect': reverse_lazy('user:password_reset_complete'),
|
'post_reset_redirect': reverse_lazy(
|
||||||
|
'user:password_reset_complete'
|
||||||
|
),
|
||||||
'extra_context': {
|
'extra_context': {
|
||||||
'page_title': 'Changer de mot de passe',
|
'page_title': 'Changer de mot de passe',
|
||||||
'button': 'Changer'
|
'button': 'Changer'
|
||||||
|
|
Loading…
Reference in a new issue