qrcode.make(s).save(f"{settings.MEDIA_ROOT}/site.png" )
from django.conf import settings
qrcode.make(s).save(f"{settings.MEDIA_ROOT}site.png" )
from django.conf import settings
qrcode.make(s).save(f"{MEDIA_ROOT}site.png" )
from django.conf.urls.static import static
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
qrcode.make(s).save("/media/site.png" )
return HttpResponse('<img src = "/media/site.png">')
href="link/?test={{el.url}}"
параметры нужно указывать так