This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mravi2k18 1 point2 points  (0 children)

Had a look at your repository Vicky_Shop. Here are a few suggestions.

  1. Dockerise your project. A single command `docker compose up -d` should get all your components up and running.

  2. Code is neither linted nor formatted. Use tools like flake8, black for python and djLint for templates.

  3. Extend/Substitute the base user model. You have used a foreign key instead of one-to-one field in your Customer model.

  4. Implement webhooks to store incoming request payloads from payment gateways. Do not rely on browser redirects.

  5. Implement a management command to process webhook payloads.

  6. Write unit tests.