Skip to content

Commit d3dc0dd

Browse files
feat(web): update to Python 3.7 and latest package versions
1 parent 76cb3fe commit d3dc0dd

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

web/Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
FROM python:3.5-onbuild
1+
FROM python:3.7-slim
2+
3+
RUN python -m pip install --upgrade pip
4+
5+
COPY requirements.txt requirements.txt
6+
RUN python -m pip install -r requirements.txt
7+
8+
COPY . .

web/docker_django/apps/todo/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from django.conf.urls import url
1+
from django.urls import re_path
22

33
from . import views
44

55
urlpatterns = [
6-
url(r'^$', views.home, name='home'),
6+
re_path(r'^$', views.home, name='home'),
77
]

web/docker_django/urls.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from django.conf.urls import include, url
1+
from django.urls import include, re_path
22
from django.contrib import admin
33

44
urlpatterns = [
5-
url(r'^admin/', include(admin.site.urls)),
6-
url(r'^', include('docker_django.apps.todo.urls')),
5+
re_path(r'^admin/', admin.site.urls),
6+
re_path(r'^', include('docker_django.apps.todo.urls')),
77
]

web/requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django==1.8.1
2-
gunicorn==19.3.0
3-
psycopg2==2.6
4-
redis==2.10.3
1+
Django==2.1.7
2+
gunicorn==19.9.0
3+
psycopg2==2.7.7
4+
redis==3.2.1

0 commit comments

Comments
 (0)