Skip to content

Commit

Permalink
Merge pull request #24 from ryanj/ryanj-updates
Browse files Browse the repository at this point in the history
python 3.11 updates
  • Loading branch information
ryanj authored Oct 31, 2024
2 parents 9c4f338 + 7f5f895 commit 476de21
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion blog/templates/blog/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
<html>
<head>
<title>{{ BLOG_SITE_NAME }}</title>
Expand Down
4 changes: 2 additions & 2 deletions blog/urls.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from django.conf.urls import url
from django.urls import re_path as url
from django.contrib.auth import views as auth_views

from . import views

urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^login/$', auth_views.login, {'template_name': 'blog/login.html'}, name='login'),
url(r'^login/$', auth_views.LoginView.as_view(), {'template_name': 'blog/login.html'}, name='login'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit'),
url(r'^post/new/$', views.post_new, name='post_new'),
Expand Down
3 changes: 2 additions & 1 deletion katacoda/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""

from django.conf.urls import include, url
from django.urls import include
from django.urls import re_path as url
from django.contrib import admin
from django.conf.urls.static import static

Expand Down
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
certifi==2018.1.18
certifi==2022.12.7
chardet==3.0.4
click==6.7
dj-database-url==0.4.2
Django==2.0.13
Django==4.2.16
idna==2.6
mod-wsgi==4.6.6
Pillow==5.0.0
mod-wsgi==4.9.3
Pillow==11.0.0
psycopg2==2.8.6
pytz==2017.3
pytz==2024.2
requests==2.22.0
schedule==0.5.0
urllib3==1.25.3

0 comments on commit 476de21

Please sign in to comment.