Relative Content

Tag Archive for pythondjangonginx

CSS not working after applying collectstatic in Django

I just deployed my django project on nginx server. I have connected with domain and everything, site is live. However, the issue occured when I used python3 manage.py collectstatic. Everything still works, but css is not loaded and site is not looking how it supposed to be.

Why NGINX doesn’t work with Django project?

I have a Django project that works using setup Django web-server. I want to use nginx and uWSGI. I created a directory in root Django folder called nginx/nginx.conf and nginx/default.conf to set nginx. Ir successfully works at http://localhost:8080 and shows nginx start page (site also starts with uwsgi --http :8000 --module brand_site.wsgi). But when I try http://localhost:8080/blog/corgifume-posts/ it shows 404 Not Found. What’s the problem? Why my site doesn’t work with nginx?