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 %}
What could be wrong and how coud this be fixed?