widget_tweaks
is installed and added in INSTALLED_APPS
in my setting.py
.
If I start the server with python3 manage.py runserver
in the terminal it works.
If I start the vscode debugger, I get this error in the Debug Console:
File "/Users/frank/Dev/MyListApp/env/lib/python3.10/site-packages/django/apps/config.py", line 193, in create
import_module(entry)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'widget_tweaks'
My launch.json is:
{
"name": "MyList",
"python": "/Users/frank/Dev/MyListApp/env/bin/python3",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/MyListApp/manage.py",
"console": "internalConsole",
"args": [
"runserver"
],
"django": true,
"justMyCode": true,
}
As test: If I use PyCharm, I get the same error when I start the PyCharm debugger.
Where is the problem? In the terminal it works, in the debugger not...