Python package `drf-comments` not being recognized
i am developing a rest-based django project. i want to implement a commenting system in my project; but it has to be decoupled from the other apps. therefore, deepseek suggested to use drf-comments
in my project. the whole thing seems appealing; as it does not require writing any model
, view
, serializer
and url
. deepseek just told me to add the urls coming from the drf-comments
package and i did so. everything looks fine; but when i attempt to run the command python manage.py makemigrations
or the migrate
command, i get the error:
ModuleNotFoundError: No module named 'drf_comments'
and i got back to my chatbots (deepseek and blackbox) and they told me to go back, delete-recreate the venv
to make sure everything works fine; but i know it is fine. does anybody know what's the problem with this python package (drf-comments
)? maybe it is not supported anymore.
additional information:
python version:
Python 3.11.4
the pip list
:
asgiref 3.8.1
certifi 2024.12.14
cffi 1.17.1
charset-normalizer 3.4.1
defusedxml 0.8.0rc2
Django 5.1.4
djangorestframework 3.15.2
djangorestframework_simplejwt 5.4.0
djoser 2.3.1
drf-comments 1.2.1
drf-nested-routers 0.94.1
idna 3.10
oauthlib 3.2.2
pip 24.3.1
pycparser 2.22
PyJWT 2.10.1
python3-openid 3.2.0
requests 2.32.3
requests-oauthlib 2.0.0
setuptools 65.5.0
social-auth-app-django 5.4.2
social-auth-core 4.5.4
sqlparse 0.5.3
tzdata 2024.2
urllib3 2.3.0
i tried checking the installation of the drf-comments
package using pip show
and pip list
, i tried the activation of my venv
, i double-checked the <main_app>.INSTALLED_APPS
.
I expected maybe there was some typo in the installed_apps
list, but there weren't any. everything lookes fine.