Django image upload causing multidictkey error from enctype="multipart/form-data"

Access57
Access57 used Ask the Experts™
on
Hello,
  Right now I'm working on a basic Django application, I am learning how to upload an image from a User and serve it onto the web-page.  I have no issues when I create a new Topic (class) and upload an image through the Django Admin GUI.  It adds the image into my files structure perfectly, however when I try to upload the image through my html <form> I get a multvalueidictkey error from the enctype="multipart/form-data" on my  (form) action function.  If i remove that enctype from the form I get no errors but the image doesnt seem to append the media_root url.

Error Page
mdke.PNG
HTML form
HTML form
Views.py  (form action function triggering error)
Views.py (form action function triggering error)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Request.files was the answer; Request.post was not causing the problem.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial