Skip to content

Commit

Permalink
Upgrade Django to 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavAndreasson committed Dec 29, 2023
1 parent be536c3 commit fed7589
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9.15-alpine3.16
FROM python:3.11-alpine3.19
ENV PIP_NO_CACHE_DIR off
ENV PIP_DISABLE_PIP_VERSION_CHECK on
ENV PYTHONUNBUFFERED 1
Expand Down
4 changes: 2 additions & 2 deletions frontend/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.conf.urls import url
from django.urls import path
from . import views

urlpatterns = [
url(r"^$", views.index),
path("", views.index),
]
26 changes: 13 additions & 13 deletions records/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 path, re_path

from .views import collection
from .views import record
Expand All @@ -8,20 +8,20 @@

app_name = "records"
urlpatterns = [
url(r"^collection/(?P<username>[\w\.\-]+)$", collection.getCollection, name="getCollection"),
url(r"^collection/(?P<username>[\w\.\-]+)/update$", collection.updateCollection, name="updateCollection"),
url(r"^record/(?P<record_id>\d+)$", record.getRecord, name="getRecord"),
url(r"^record/(?P<record_id>\d+)/update$", record.updateRecord, name="updateRecord"),
url(
re_path(r"^collection/(?P<username>[\w\.\-]+)$", collection.getCollection, name="getCollection"),
re_path(r"^collection/(?P<username>[\w\.\-]+)/update$", collection.updateCollection, name="updateCollection"),
path("record/<int:record_id>", record.getRecord, name="getRecord"),
path("record/<int:record_id>/update", record.updateRecord, name="updateRecord"),
re_path(
r"^record/(?P<record_id>\d+)/set/(?P<listen_name>\w+)/(?P<listen_key>\w+)$",
record.setRecordListen,
name="setRecordListen",
),
url(r"^artist/(?P<artist_id>\d+)$", artist.getArtist, name="getArtist"),
url(r"^artist/(?P<artist_id>\d+)/update$", artist.updateArtist, name="updateArtist"),
url(r"^artist/(?P<artist_id>\d+)/releases$", artist.getArtistReleases, name="getArtistReleases"),
url(r"^artist/(?P<artist_id>\d+)/releases/update$", artist.updateArtistReleases, name="updateArtistReleases"),
url(r"^artist/autocomplete$", artist.getArtistAutocomplete, name="getArtistAutocomplete"),
url(r"^progress$", progress.getProgress, name="getProgress"),
url(r"^rate/(?P<currency>\w+)$", rates.getRate, name="getRate"),
path("artist/<int:artist_id>", artist.getArtist, name="getArtist"),
path("artist/<int:artist_id>/update", artist.updateArtist, name="updateArtist"),
path("artist/<int:artist_id>/releases", artist.getArtistReleases, name="getArtistReleases"),
path("artist/<int:artist_id>/releases/update", artist.updateArtistReleases, name="updateArtistReleases"),
path("artist/autocomplete", artist.getArtistAutocomplete, name="getArtistAutocomplete"),
path("progress", progress.getProgress, name="getProgress"),
re_path(r"^rate/(?P<currency>\w+)$", rates.getRate, name="getRate"),
]
1 change: 0 additions & 1 deletion records2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@

USE_I18N = True

USE_L10N = True

USE_TZ = True

Expand Down
8 changes: 4 additions & 4 deletions records2/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import include, url
from django.urls import include, path, re_path
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
url(r"^records/", include("records.urls")),
url(r"", include("frontend.urls")),
url(r"^admin/", admin.site.urls),
path("records/", include("records.urls")),
path("", include("frontend.urls")),
re_path(r"^admin/", admin.site.urls),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
asgiref==3.3.2
asgiref==3.7.2
certifi==2023.7.22
chardet==4.0.0
Django==3.2.23
Django==4.2.8
django-redis==5.2.0
django-appconf==1.0.5
django-imagekit==4.1.0
Expand Down

0 comments on commit fed7589

Please sign in to comment.