Answer the question
In order to leave comments, you need to log in
What's wrong with django2.1 access to add images?
When adding a file, this miracle comes out of the form every time, I've already
tried
everything
.
/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
MEDIA_URL = "/media/"
worth gunicron if it's important
added to urls.py urlpatterns = [...]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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