Solved i have add <img src="/media/img/myfile" alt="my file">
Il giorno giovedì 11 febbraio 2021 alle 15:27:51 UTC+1 luca72.b...@gmail.com ha scritto: > Hello > In the setup file i have: > > STATIC_URL = '/static/' > MEDIA_URL = '/media/' > > #STATICFILES_DIRS = [ > # os.path.join(BASE_DIR, "static"), > # '/polls/static/polls', > #] > > STATIC_ROOT = "F:/aflbmanager/mysite/polls/static" > MEDIA_ROOT = "F:/aflbmanager/mysite/polls/media" > > In the template for load file that are in static file i use: > {% load static %} > than for load the file : > <link rel="stylesheet" href="{% static "bese.css" %}"> > and it works > > How i can load image stored in media/img > <img src=???????? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/669fe9d3-9bd8-412d-8e2b-0efa3435c5a7n%40googlegroups.com.