skip to Main Content

Django doesn't serve static files with NGINX + GUNICORN

Everything worked very well before gunicorn and nginx, static files were served to the website. But now, it doesn't work anymore. Settings.py STATICFILES_DIRS = [ '/root/vcrm/vcrm1/static/' ] STATIC_ROOT = os.path.join(BASE_DIR, 'vcrm/static') STATIC_URL = '/static/' MEDIA_ROOT = '/root/vcrm/vcrm1/vcrm/media/' MEDIA_URL = '/media/'…

VIEW QUESTION

Gunicorn cant find the static files – Nginx

By using gunicorn without nginx from digitalcloud tutorial my server is runing and on the console is not found: /static/style.css settings.py STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static/') I already tried to collectstatic do urlpatterns += staticfiles_urlpatterns() in urls.py file…

VIEW QUESTION
Back To Top
Search