Answer the question
In order to leave comments, you need to log in
How to properly upload a photo with a directory in Django to save it to the Selectel cloud?
I load using the library: django-selectel-storage
There is a class:
class News(models.Model):
photo = models.ImageField(upload_to='media', verbose_name='Фото')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question