ModuleNotFoundError: No module named 'commentdjango'

1.2k Views Asked by At

I am trying to add comments to posts on my blog on this guide https://pypi.org/project/django-comments-dab/ but when doing migrations I get this error, thanks for any help

2

There are 2 best solutions below

2
Walucas On

Assuming you have installed the package: pip install django-comments-dab next step would be to add it on your INSTALLED_APPS

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    ...
    'comment',
    ..
)

then python manage.py migrate comment

0
Squidward On

I just forgot the comma after the 'comment' in INSTALLED_APPS ..I just didn't get enough sleep today, oh no, I spent so much time on it