Revert "removed more unused stuff"

This reverts commit a0ac379b3c.
This commit is contained in:
vabene1111
2024-12-28 15:11:34 +01:00
parent 9cf1435130
commit 1a39066b45
3 changed files with 4 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ python manage.py migrate
echo "Collecting static files, this may take a while..."
python manage.py collectstatic_js_reverse
python manage.py collectstatic --noinput
echo "Done"

View File

@@ -182,6 +182,7 @@ INSTALLED_APPS = [
'django_cleanup.apps.CleanupConfig',
'webpack_loader',
'django_vite',
'django_js_reverse',
'hcaptcha',
'allauth',
'allauth.account',

View File

@@ -21,6 +21,7 @@ from django.contrib import admin
from django.urls import include, path, re_path
from django.views.i18n import JavaScriptCatalog
from django.views.static import serve
from django_js_reverse import views as reverse_views
urlpatterns = [
path('', include('cookbook.urls')),
@@ -42,6 +43,7 @@ if settings.ENABLE_METRICS:
if settings.GUNICORN_MEDIA or settings.DEBUG:
urlpatterns += re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
urlpatterns += re_path(r'^jsreverse.json$', reverse_views.urls_js, name='js_reverse'),
for p in settings.PLUGINS:
try: