v002 migrations

This commit is contained in:
2026-05-21 03:33:17 +00:00
parent 83fb8c69bb
commit c078a257e9
101 changed files with 281 additions and 4 deletions

View File

@@ -140,6 +140,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/6.0/howto/static-files/
STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
# Automatski koristi filtriranje na svim API endpointima koji podržavaju filtriranje

View File

@@ -40,4 +40,5 @@ urlpatterns = [
# Dodajemo pristup media datotekama samo u development fazi
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)