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:
@@ -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'))]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user