0

I am running a simple hello world django app using supervisor. I was looking at this package in GitHub - https://github.com/rfk/django-supervisor for reference as well.

The app runs all okay, but when I load the index.html page, I see none of my CSS files being loaded and I just see plain-text. Do I need to add the css files as a specific program directory/file in the supervisord config?

chrisrhyno2003
  • 3,906
  • 8
  • 53
  • 102
  • 1
    You're running Django with supervisor, fine. But in production, Django isn't a static server. You need to rig your front-facing server like nginx to do that for you. – KhoPhi Jan 30 '17 at 20:24
  • Do I need nginx even in development? I am just playing around in my local box. – chrisrhyno2003 Jan 30 '17 at 22:12
  • In dev, you don't need Nginx. You might wanna check this: http://stackoverflow.com/questions/9181047/django-static-files-development – KhoPhi Jan 30 '17 at 22:32
  • http://stackoverflow.com/questions/39855652/django-server-killed-frequently/39855716?s=1|0.7612#39855716 – e4c5 Jan 31 '17 at 06:08
  • @e4c5: yeah, I am aware that the default server isn't production safe and it should never go into a production ready environment – chrisrhyno2003 Jan 31 '17 at 18:31

0 Answers0