geekcomputers / geekcomputers/Python

How to upload an image in django

Open
#1,244 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
35.4k
Forks
12.9k
Avg merge
2h 37m
Merged PRs (30d)
1

Description

I am building an e-commerce website and I have an update item page. Everything else in the form is saved correctly like the name, details, and price but the image doesn't save. It clears the image so that there is no image with the item. I am using an input tag in an html file named update to save the changes made to the item. Is there anyway that I am able to save the image easily within the update page.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the HTML file named update and the update-page flow described in the issue. Reproduce an item update where the name, details, and price save but the image is cleared, then trace the image handling to determine what needs changing and confirm that an existing image is preserved or replaced correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.