Django Serve Static Files with out seperate Web server(i.e, without nginx??)

573 views Asked by At

I have a issue with running my django application on the production server, Its working fine when i use nginx webserver to serve the static files.

But i have my django application running on one server and my webserver is running on other server.So, i cannot configure nginx to serve the static files.

I Want to know is there any way to serve the Django static files which using nginx server? I mean django should directly serve the static files for my application.

1

There are 1 answers

2
Irfan wani On

Use whiteNoise. WhiteNoise is a package which will help you to serve the staticfiles with very ease. http://whitenoise.evans.io/en/stable/django.html