I have followed the Advanced tutorial named : “How to write a reusable apps” .
All went fine until the “Using your own package” section where iam stuck at the step 2 .
So my problem is that i can’t launch the server properly .
I have a error message that says . ModuleNotFound error : No module named “django_polls.”
I have also a virtual env installed in the same file that my project.
Did you successfully create the django_polls package?
(You have a django-polls-0.1.tar.gz file?)
Did you successfully install it?
Does a pip list show django_polls?
Exactly what commands did you use during this step of the tutorial?
What exactly do you mean by this? (virtual environments aren’t “installed in files”)
Is the virtual environment active when you did the pip install?
The components of your project are Python modules. A Python module can be imported from any directory that is part of the default search path, along with those directories specified in PYTHONPATH.
Ok,
So when i import django from my python shell (with my venv running) i have the message ModuleNotFoundError : No django module named ‘django_polls’.
The python version when i enter the command python-V is : 3.10.1.
Here is a screenshot of the pip list .