Skip to content

Commit 476de21

Browse files
authored
Merge pull request #24 from ryanj/ryanj-updates
python 3.11 updates
2 parents 9c4f338 + 7f5f895 commit 476de21

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

blog/templates/blog/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static %}
22
<html>
33
<head>
44
<title>{{ BLOG_SITE_NAME }}</title>

blog/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from django.conf.urls import url
1+
from django.urls import re_path as url
22
from django.contrib.auth import views as auth_views
33

44
from . import views
55

66
urlpatterns = [
77
url(r'^$', views.post_list, name='post_list'),
8-
url(r'^login/$', auth_views.login, {'template_name': 'blog/login.html'}, name='login'),
8+
url(r'^login/$', auth_views.LoginView.as_view(), {'template_name': 'blog/login.html'}, name='login'),
99
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
1010
url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
1111
url(r'^post/new/$', views.post_new, name='post_new'),

katacoda/urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1515
"""
1616

17-
from django.conf.urls import include, url
17+
from django.urls import include
18+
from django.urls import re_path as url
1819
from django.contrib import admin
1920
from django.conf.urls.static import static
2021

requirements.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
certifi==2018.1.18
1+
certifi==2022.12.7
22
chardet==3.0.4
33
click==6.7
44
dj-database-url==0.4.2
5-
Django==2.0.13
5+
Django==4.2.16
66
idna==2.6
7-
mod-wsgi==4.6.6
8-
Pillow==5.0.0
7+
mod-wsgi==4.9.3
8+
Pillow==11.0.0
99
psycopg2==2.8.6
10-
pytz==2017.3
10+
pytz==2024.2
1111
requests==2.22.0
1212
schedule==0.5.0
13-
urllib3==1.25.3

0 commit comments

Comments
 (0)