Update URLs, Docker config, and Tailwind setup

Added static and media file serving and Silk profiling in Django URLs. Updated docker-compose to mount backend/frontend code, adjust commands, and switch to 'trznice' app references. Enhanced Tailwind config to extend default colors and import defaultTheme.
This commit is contained in:
2026-01-29 01:31:33 +01:00
parent 304194d7ec
commit 3e4d58f80d
5 changed files with 28 additions and 9 deletions

View File

@@ -16,6 +16,10 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from django import settings
from .views import choices
from drf_spectacular.views import (
@@ -45,4 +49,8 @@ urlpatterns = [
path("api/payments/gopay/", include("thirdparty.gopay.urls", namespace="gopay")),
path('api/zasilkovna/', include('thirdparty.zasilkovna.urls')),
path('api/deutschepost/', include('thirdparty.deutschepost.urls')),
]
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
if settings.DEBUG:
urlpatterns += [path('silk/', include('silk.urls', namespace='silk'))]