url to your uploaded
> file.
>
> HTH.
>
> pe 5. heinäk. 2019 klo 15.55 Michał Ratajczak > kirjoitti:
>
>> Hi, i'm new in Django, I'm trying to configure media files correctly.
>>
>> That's in my model.py:
>>
>> class Question(models.Mode
for %}
W dniu piątek, 5 lipca 2019 16:22:22 UTC+2 użytkownik John Bagiliko napisał:
>
> Remove the upload_to in the model.
>
> On Fri, Jul 5, 2019, 12:55 PM Michał Ratajczak > wrote:
>
>> Hi, i'm new in Django, I'm trying to configure media files correctly.
>>
>
Hi, i'm new in Django, I'm trying to configure media files correctly.
That's in my model.py:
class Question(models.Model):
description = models.CharField(max_length=200)
image = models.ImageField(upload_to='media/', null=True, blank=True)
in settings.py:
STATIC_URL = '/static/'
3 matches
Mail list logo