0

this is my first post here in the community. I've been trying to solve this import problem for 3 days and I'm not successful.

First, the project is an application in which the frontend (developed in ReactJS) has a form that sends information via a POST method to the backend. In this file where I do the calculations, there is an import problem that I cannot solve.

My code and directories

I started django and react and after that I clicked to run the "calculator_delivery.py" file and it shows me the import error.

Any suggestion? thanks!

I've used the absolute and relative path and it doesn't work.

  • Welcome to Stack Overflow. Install the package in the virtual environment, so that the package root is on the module search path, and run the `calculator_delivery.py` as a module rather than as a script, using the `-m` flag. See the linked duplicate for more details. In the future, please [do not show IDE screenshots](https://meta.stackoverflow.com/questions/285551), and [look for existing questions](https://meta.stackoverflow.com/questions/261592) before asking, for example by putting error messages into a search engine. – Karl Knechtel Jan 23 '23 at 14:38

0 Answers0