Hello Team,
I have installed Django template and as default all working fine,
Now we want some URL path changed, so we made changes to _keenthemes\url.py file,
If you see we have added App/ in URL,
After that, we see assets are not loading, as it looks for App/asset path,
So how can we change the default asset path for images? or other items.
The image is linked at https://imgur.com/a/OlkiA4q
from django.contrib import admin
from django.urls import include, path
from django.conf import settings
from _keenthemes.views import SystemView
urlpatterns = [
path('admin/', admin.site.urls),
# Dashboard urls
path('App/', include('dashboards.urls')),
path('App/', include('futures.urls')),
# Auth urls
path('login/', include('auth.urls')),
Hi Jigar,
Since you have added the "App/" prefix to your URLs, you need to update the STATIC_URL in your Django project's settings. This is necessary to ensure that the static files are served from the correct path based on your new URL structure.
In your settings.py file, update the STATIC_URL:
STATIC_URL = "/App/static/"