v002 migrations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user