Search code examples
djangodjango-comments

ImportError: No module named threadedcommentsdjango_comments while use django-threadedcomments app


I am trying to use django-threadedcomments app to allow comments in my website following the configurations mentioned https://pypi.python.org/pypi/django-threadedcomments. my installed apps are

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# for comments
'threadedcomments'
'django_comments',
'django.contrib.sites', 
# installed apps
# APPS
'debug_toolbar',
#related to debug_toolbar
'haystack_panel',
'whoosh',
'haystack',
'taggit',
'question',
 ]
COMMENTS_APP = 'threadedcomments'

After adding the 'threadedcomments' app in the settings.py I am gettting the error when I run python manage.py migrate or python manage.py runserver

ImportError: No module named threadedcommentsdjango_comments Full Error Trace enter image description here

however the code works fine without 'threadedcomments' and with 'django_comments'. I am using django 1.8.8 and posgres9.5. please help.

note: I have already installed 'threadedcomments' app in my venv. enter image description here


Solution

  • OK, In your settings you are missing ','(comma):

    'threadedcomments'
    'django_comments',
    

    ===>

    'threadedcomments',
    'django_comments',
    

    If you were accurate you can find that in your own screen:

    No module named threadedcommentsdjango_comments
    

    there is no split between two packages.