Xadmin ModuleNotFoundError: No module named 'django.contrib.formtools'

created at 07-17-2021 views: 12

When using virtualenv (virtual environment) to run Xadmin to run /makemigrations, an error message is displayed:

Xadmin ModuleNotFoundError: No module named 'django.contrib.formtools'

Solution

1. Check whether the django-formtools template is installed in the corresponding virtual environment

pip list

2. Just install the corresponding module.

created at:07-17-2021
edited at: 07-17-2021: