Django admin file upload does not work, how can I debug this?

I'm on a Mac Leopard. Trying to get django admin file downloads or actual image uploads. In my models.py application, I set the field:

image = models.FileField(upload_to='images', max_length=500)

(launched w / ImageField, but thought that if the file does not work, then the image probably will not work)

It says that the download has occurred. Gives me a positive result. Saves the path to my database. But looking for a file, well, it's not there.

Since there are no error messages, it is difficult to debug. Tried various permissions but nothing works.

Any ideas?

+3
source share

Source: https://habr.com/ru/post/1714696/


All Articles