1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 09:07:12 -05:00

fixed some breaking changes due to dependency updates

This commit is contained in:
vabene1111
2022-05-30 21:42:30 +02:00
parent a6dcef4467
commit f768aef0b9
8 changed files with 3141 additions and 50439 deletions

View File

@@ -15,7 +15,6 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.conf.urls import url
from django.contrib import admin
from django.urls import include, path, re_path
from django.views.i18n import JavaScriptCatalog
@@ -35,7 +34,7 @@ urlpatterns = [
]
if settings.ENABLE_METRICS:
urlpatterns += url('', include('django_prometheus.urls')),
urlpatterns += re_path('', include('django_prometheus.urls')),
if settings.GUNICORN_MEDIA or settings.DEBUG:
urlpatterns += re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),