Search code examples
pythondjangodjango-tables2

django-tables2 module missing


I am trying to use django-tables2 in my django project but I keep getting

"ModuleNotFoundError: No module named 'django-tables2'" error.

installed it with pip install - everything OK.

added django-tables2 to INSTALLED_APPS (it seems the problem is here).

Thanks you.


Solution

  • You're using a hyphen but the module name has an underscore. The instructions ask you to add "django_tables2" to INSTALLED_APPS and not "django-tables2".