Configure PyCharm Debugger using VENV + DJANGO
In my opinion, the DEBUGGERS, have come to save the programmers of hours and hours of work. Sometimes when we use IDEs, we struggle to install and configure them.
Ok, let's go...
In your VENV folder, you have to locate the file: Python.exe inside in venv/scripts/python.exe
Go to File -> Settings and locate the Project Interpreter. Then click on “+” and put the route of your Python.exe, we have to add this Python Interpreter that comes from VENV.
Then on the top of your PyCharm, Click on Edit Configurations
The last step is to create the Debug Agent (as shown in the following picture):
Script path: Put your manage.py File.
Parameters: runserver (When start the debug process this command will be executed).
Python interpreter: Put your Python Agent, that we set in the previous step, using venv.
And that's it, click on the Debug icon to start the process.
Take some time and then do everything faster. Debuggers save lives.
Bernaola Martin