darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.32k stars 704 forks source link

site not displaying correctly when run on nginx #691

Closed GerBreOwn closed 6 years ago

GerBreOwn commented 6 years ago

Greetings: I have just started using Django Suit. It looks great when I run the Django server. However when I run it with the nginx server all formating is lost. It looks like it is running under gunicorn. Any ideas on how I can fix this? Thanks, Gerald S. Brown

darklow commented 6 years ago

In production mode, you have to serve static files separately: https://docs.djangoproject.com/en/2.0/howto/static-files/

GerBreOwn commented 6 years ago

I followed the link you provide but I am still getting the same results.

I "/thought"/ Nginx serves ONLY Django static file and Gunicorn serves Django dynamic files.

I went to the Nginx website but didn't see anything about static files.

Prior to installing Django-Suit I did not have this problem. It was running on Nginx then and everything looked fine.

I really like the look of Django-Suit so I need to get it running correctly so any additional pointers will be greatly appreciated.

Thanks.

On Tuesday, 19 June, 2018 05:33 AM, Kaspars Sprogis wrote:

In production mode, you have to serve static files separately: https://docs.djangoproject.com/en/2.0/howto/static-files/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/darklow/django-suit/issues/691#issuecomment-398202999, or mute the thread https://github.com/notifications/unsubscribe-auth/AVy7n8ew1LTbzCv3MKKTvJZbjCBwR4dLks5t-By2gaJpZM4Ur5oI.

darklow commented 6 years ago

If it runs on runserver then it looks like static files serving issue. Did you run ./manage.py collectstatic on production server?

GerBreOwn commented 6 years ago

Yes,I did.  I have done several things that I don't remember but what ever they were I now have it working.

On Thursday, 21 June, 2018 12:12 AM, Kaspars Sprogis wrote:

If it runs on |runserver| then it looks like static files serving issue. Did you run |./manage.py collectstatic| on production server?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/darklow/django-suit/issues/691#issuecomment-398808018, or mute the thread https://github.com/notifications/unsubscribe-auth/AVy7nyBaUg3AXaA0Tg2OeIEb0RrBzGN8ks5t-nR7gaJpZM4Ur5oI.