# Problem with crispy\_bootstrap4 module not found

**URL:** <https://forum.djangoproject.com/t/problem-with-crispy-bootstrap4-module-not-found/31662>\
**Category:** Mystery Errors\
**Created:** [May 31, 2024, 11:26am UTC](https://forum.djangoproject.com/t/problem-with-crispy-bootstrap4-module-not-found/31662 "2024-05-31T11:26:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hrestrepogt](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/hrestrepogt/32/21327_2.png) [@Hrestrepogt](https://forum.djangoproject.com/u/Hrestrepogt)\
**Post date:** [May 31, 2024, 11:26am UTC](https://forum.djangoproject.com/t/problem-with-crispy-bootstrap4-module-not-found/31662/1 "2024-05-31T11:26:36Z")

</div>

Hi, I´m new to python Django.  
I have a site hosted in pythonanywhere, it’s in production alredy and it seems to be workin fine, however, when i tried to make an enhancement by adding a PQRSF seccion, after createing the model and trying to makemigrations I´ve got error:  
ModuleNotFoundError: No module named ‘crispy\_bootstrap4’

This module was installed, the pages have bee rendering fine, but with this error I cannot continue with the migrations.

I uninstall and reinstall the crispy and boostrap4 packages, but it did not resolved the issue.

I cannot see the cause for that problem.

I have the settings as expected in settings.py:

CRISPY\_FORMS\_PACK = ‘bootstrap4’  
CRISPY\_TEMPLATE\_PACK = ‘bootstrap4’

INSTALLED\_APPS = [  
‘publicaciones.apps.PublicacionesConfig’,  
‘usuarios.apps.UsuariosConfig’,  
‘crispy\_forms’,  
‘axes’,  
‘crispy\_bootstrap4’,  
“django.contrib.admin”,  
“django.contrib.auth”,  
“django.contrib.contenttypes”,  
“django.contrib.sessions”,  
“django.contrib.messages”,  
“django.contrib.staticfiles”,  
]

MIDDLEWARE = [  
“django.middleware.security.SecurityMiddleware”,  
“django.contrib.sessions.middleware.SessionMiddleware”,  
“django.middleware.common.CommonMiddleware”,  
“django.middleware.csrf.CsrfViewMiddleware”,  
“django.contrib.auth.middleware.AuthenticationMiddleware”,  
“django.contrib.messages.middleware.MessageMiddleware”,  
“django.middleware.clickjacking.XFrameOptionsMiddleware”,  
‘axes.middleware.AxesMiddleware’,  
‘django.middleware.locale.LocaleMiddleware’,  
]

And I am only using it on my templates as in the example below:

{% extends “publicaciones/base.html” %}  
{% load crispy\_forms\_tags %}  
{% block content %}

 {% csrf\_token %} {{ form|crispy }} {{ apartamento\_formset.management\_form }} {% for form in apartamento\_formset %} 
 {{ form|crispy }} {% if not forloop.first %} Eliminar {% endif %} 
 {% endfor %} Agregar Apartamento 
 {% if request.session.acepto\_terminos %} Registrate aqui {% else %} Ver Terminos y condiciones {% endif %} 
{% endblock content %}

What could be wrong and how coud this be fixed?
