Skip to content

Commit

Permalink
requirements: Update Django to latest LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Aug 22, 2024
1 parent 4ca47d4 commit c03e994
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cove_iati/lib/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from libcove.lib.exceptions import CoveInputDataError
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


class UnrecognisedFileTypeXML(CoveInputDataError):
Expand Down
2 changes: 1 addition & 1 deletion cove_iati/lib/iati.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import requests
from bdd_tester import bdd_tester
from django.utils.html import format_html
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from libcove.lib.exceptions import CoveInputDataError
from libcove.lib.tools import ignore_errors

Expand Down
10 changes: 5 additions & 5 deletions cove_iati/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import url
from django.urls import re_path

from cove.urls import urlpatterns, handler500 # noqa: F401
from django.conf.urls.static import static
Expand All @@ -7,10 +7,10 @@
import cove_iati.views

urlpatterns = [
url(r'^$', cove_iati.views.data_input_iati, name='index'),
url(r'^data/(.+)/(.+)$', cove_iati.views.explore_iati, name='explore_suffix'),
url(r'^data/(.+)$', cove_iati.views.explore_iati, name='explore'),
url(r'^api_test', cove_iati.views.api_test, name='api_test'),
re_path(r'^$', cove_iati.views.data_input_iati, name='index'),
re_path(r'^data/(.+)/(.+)$', cove_iati.views.explore_iati, name='explore_suffix'),
re_path(r'^data/(.+)$', cove_iati.views.explore_iati, name='explore'),
re_path(r'^api_test', cove_iati.views.api_test, name='api_test'),
] + urlpatterns

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
2 changes: 1 addition & 1 deletion cove_iati/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from django.conf import settings
from django.http import HttpResponse, HttpResponseBadRequest
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
import iatiutils.merge_indicator
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django>3.2,<3.3
Django>4.2,<4.3
#^^ rq.filter: <1.12
flattentool>=0.17.2
libcove
Expand Down
12 changes: 5 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ dealer==2.1.0
# via -r requirements.in
defusedxml==0.7.1
# via odfpy
django==3.2.25
django==4.2.15
# via
# -r requirements.in
# django-bootstrap3
# django-debug-toolbar
# libcoveweb
django-bootstrap3==23.6
django-bootstrap3==24.2
# via
# -r requirements.in
# libcoveweb
django-debug-toolbar==4.3.0
django-debug-toolbar==4.4.6
# via -r requirements.in
django-environ==0.11.2
# via -r requirements.in
Expand Down Expand Up @@ -122,9 +122,7 @@ pycparser==2.22
python-dateutil==2.9.0.post0
# via -r requirements.in
pytz==2024.1
# via
# django
# flattentool
# via flattentool
rangedict==0.1.7
# via -r requirements.in
referencing==0.35.1
Expand Down Expand Up @@ -182,7 +180,7 @@ urllib3==2.2.2
# sentry-sdk
webencodings==0.5.1
# via bleach
werkzeug==3.0.3
werkzeug==3.0.4
# via libcoveweb
xmltodict==0.13.0
# via
Expand Down
9 changes: 4 additions & 5 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ defusedxml==0.7.1
# via
# -r requirements.txt
# odfpy
django==3.2.25
django==4.2.15
# via
# -r requirements.txt
# django-bootstrap3
# django-debug-toolbar
# libcoveweb
django-bootstrap3==23.6
django-bootstrap3==24.2
# via
# -r requirements.txt
# libcoveweb
django-debug-toolbar==4.3.0
django-debug-toolbar==4.4.6
# via -r requirements.txt
django-environ==0.11.2
# via -r requirements.txt
Expand Down Expand Up @@ -238,7 +238,6 @@ python-dateutil==2.9.0.post0
pytz==2024.1
# via
# -r requirements.txt
# django
# flattentool
rangedict==0.1.7
# via -r requirements.txt
Expand Down Expand Up @@ -363,7 +362,7 @@ webencodings==0.5.1
# bleach
websocket-client==1.8.0
# via selenium
werkzeug==3.0.3
werkzeug==3.0.4
# via
# -r requirements.txt
# libcoveweb
Expand Down

0 comments on commit c03e994

Please sign in to comment.