0

So I setup nginx and uwsgi using this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

I finished the tutorial completely but for some reason only my images are not being loaded on the page when I run the command...

uwsgi --ini exchange_uwsgi.ini

where exchange_uwsgi.ini is my initialization file for specifying what socket I run on, wheres my project, wheres my virtualenv etc...

Just to re-iterate, the only things not showing up are my images and my images and css are all stored in one folder.

Any reason why this might happens?

Thanks

2
  • Check Nginx's error.log. It can help to track down the issue. Please add corresponding lines from error.log and access.log to you question. Commented Nov 17, 2015 at 14:34
  • I actually figure out why it wasn't working. I'll post an answer now that might work for others. Commented Nov 18, 2015 at 17:21

1 Answer 1

3

I fixed the problem.

Make sure to check the permissions on all of your static files. Only 2 images of mine were not loading and they were the only ones with incorrect permissions.

On Linux, first go to the folder with all your static files in the command window, type "ls -l" for list items with the long parameter so you can view permissions.

I set my permission on each file to -rw-rw-r--

Edit: In order to change permissions look into the command "chmod"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.