From e79503430e791bfd21f160b2d6913351bccb73ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 21 Feb 2017 17:40:24 +0100 Subject: [PATCH 1/3] =?UTF-8?q?Utilise=20une=20version=20=C3=A0=20jour=20d?= =?UTF-8?q?e=20Django?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les version 1.10.X sont des mises à jour de sécurité et des corrections de bugs, elles sont complètement compatibles avec 1.10 et doivent être appliquées. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index bef374d..57cbe8f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django==1.10 +Django==1.10.* Pillow==3.3.0 psycopg2==2.6.2 django-bootstrap-form==3.2.1 From 5a38c67150fba513fe6e18c06c0cbde7f15ae04a Mon Sep 17 00:00:00 2001 From: Qwann Date: Tue, 21 Feb 2017 20:28:26 +0100 Subject: [PATCH 2/3] upgrading pip --- provisioning/bootstrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index e7e314b..f0bab20 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -37,6 +37,7 @@ chown vagrant: ~vagrant/.bash_profile cd /vagrant # 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-devel.txt From 704cd3e0fc06a66cc70dbd7f80caa588de6514d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 26 Apr 2017 20:36:22 +0100 Subject: [PATCH 3/3] PEP8 --- user/models.py | 1 - user/urls.py | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/user/models.py b/user/models.py index 4e54d78..85206e0 100644 --- a/user/models.py +++ b/user/models.py @@ -1,3 +1,2 @@ from django.db import models from django.contrib.auth.models import User - diff --git a/user/urls.py b/user/urls.py index 3295c69..13898b9 100644 --- a/user/urls.py +++ b/user/urls.py @@ -53,11 +53,14 @@ urlpatterns = [ Home.as_view(), name='password_reset_done'), # PASS RESET CONFIRM - url('^reset/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', + url('^reset/(?P[0-9A-Za-z_\-]+)/' + '(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.password_reset_confirm, { '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': { 'page_title': 'Changer de mot de passe', 'button': 'Changer'