problem in serving static files in django webapp

Posted December 18, 2020 331 views
DjangoUbuntu 20.04

from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

STATIC_URL = '/web/static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
STATIC_ROOT = '/home/'


i am using cyberpanel with openlightspeed server with contex**

context / {
type appserver
location /home/
binPath /usr/local/lsws/fcgi-bin/lswsgi
appType wsgi
startupFile web/
envType 1
env LS
env PYTHONHOME=/home/

my web app is not serving static files i am getting 
Not Found
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!