Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

pictures uploaded but thumbnails error 404 file not found #57

Closed
sp8899 opened this issue Feb 1, 2015 · 3 comments
Closed

pictures uploaded but thumbnails error 404 file not found #57

sp8899 opened this issue Feb 1, 2015 · 3 comments

Comments

@sp8899
Copy link

sp8899 commented Feb 1, 2015

The pictures are uploaded but there are 404 file not found errors for the thumbnails as screenshots attached. I am pretty new to django, can someone please help. Thanks.
image

@sigurdga
Copy link
Owner

sigurdga commented Jun 7, 2016

I guess it won't help you now, but the urls was not working until I made it compatible with Django 1.9 just now. I guess this problem was with at least 1.8 as well.

@sigurdga sigurdga closed this as completed Jun 7, 2016
@sigurdga
Copy link
Owner

Hi @Jawnz

Could you try a clean clone? Then

virtualenv -p python2 venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
./manage.py runserver

Then try localhost:8000 and do your uploads again. In my case, after the clean clone as described, the files are downloaded nicely from /media/pictures. Still on Django 1.9 in that case. I will see how much work is needed to get to 2.0 now.

@sigurdga
Copy link
Owner

The code repository worked fine with 1.10.8 and 1.11.10, but developers should use Django 2 now.

I needed to change the url parts of the code and was able to migrate to Django 2.0 (and Python 3). You could try a clean checkout of the new version and see if it works for you:

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
./manage.py runserver

Please deactivate from the old virtualenv and delete it before creating the new. I hope this gets you in the right direction, @Jawnz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants