From e1b2abf2d55cc51661dbc3775e7d4e001957e99f Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 13 Mar 2026 04:13:41 +0000 Subject: [PATCH] version 22 --- .../config/__pycache__/urls.cpython-311.pyc | Bin 1626 -> 1727 bytes backend/config/urls.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/config/__pycache__/urls.cpython-311.pyc b/backend/config/__pycache__/urls.cpython-311.pyc index c911527794ad443b7b96dcc668eb3703a6c2cec5..6f9290ed2e9c5f0356eb8af33fa48d123ae4478e 100644 GIT binary patch delta 818 zcmZ`$O-ma=7@m!j&2BcUQEMwjC>q5?XhIJ{DdJ+a6pN_DlxPYKOJ=kivb$ksV{I<+ z=%rwYKOiR+dMSA6rL;d`w=7iVPzwD6LT^2k&gP>iwC~I?&-?K_GcPZTeNt!7R5c2? zMc-Z+A0Yrg0;g|s5Bywc&L$R3u^DP#mVW2LTY=YA@QlaaqvDP}AZxE3;#}ri7tvx$kvaMYb z2_ko{MLL9Z_g_Q`vZKB1zJXuUekPbNgVb<%hrts}dc3stq`0!0Wnxt){EIBQm0QZK zE*GC?*O*wL4w*2jOz8!)8yh*Ma3*ig!Nj7i-|$&iu5PEMp<@Za4!4o^2O z!Hj!zUx^?rAFdpYAJ3mWI?+6s@L}RRR1TlIvFSEGw?7>C+NQ7N-2(D7PiuZLWfGQ$UWZCAKD7#>i_@% delta 703 zcmZvZ!E4h{9LHbcdri|Mt*)Y@B6F*wt6+P{b`W%^8%`%q+sa%ON|qOALX$|6UINk{ z6pE*g?BHK84~hu8c=PHpfgDDz{sTe(0bkMu9PF38FTecW@B8^BFF%EduYDGT0wD43 z!;!iH0r;IfWWk&yf3NM=szVB33d4R*XSz(9qkdjzyDSB0pdg%6Xe~u0CXLG&hcp0R z$eKpl$q>M}ltLKiGbhO}Wck@1TxXwR3uV`_RNNC8n3M! zd6($&f0dNgupP-!Wh?n35wul@OipG*9MQLu<0zJ4M`&&R-tz}u1x;~6^0I{RB@$6*z;MT!v0IMOa9>Y8-&5XCl z+mn}pFdqu@0bB^-LX6Ip=n)qe0Oa4_i2+Tusbg50tV~uu-T1x{itC~H_?H`qJN~QP zK-~2eJrH%jYy@Q^BnpkuX4bzHR&M^Ny$EkV^UJNE+zN@p)@U=iVw8}leCrDNkbmY$ BtXKd5 diff --git a/backend/config/urls.py b/backend/config/urls.py index a84e9cb..2a3999e 100644 --- a/backend/config/urls.py +++ b/backend/config/urls.py @@ -15,15 +15,15 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import include, path +from django.urls import include, path, re_path from django.conf import settings from django.conf.urls.static import static +from django.views.static import serve urlpatterns = [ path("admin/", admin.site.urls), + # Serve assets and static files explicitly before the catch-all + re_path(r'^assets/(?P.*)$', serve, {'document_root': settings.BASE_DIR.parent / "frontend" / "dist" / "assets"}), + path(settings.STATIC_URL.lstrip('/'), serve, {'document_root': settings.STATIC_ROOT}), path("", include("core.urls")), ] - -if settings.DEBUG: - urlpatterns += static("/assets/", document_root=settings.BASE_DIR.parent / "frontend" / "dist" / "assets") - urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) \ No newline at end of file