Форма мастера django не работает с bootstrap

У меня есть страница, которая использует bootstrap css для стилизации, которая работает нормально, но когда я добавляю форму мастера django на эту html страницу, все bootstrap css исчезают, но другие обычные css файлы все еще работают нормально.

html форма

{% load i18n %}
{% load crispy_forms_tags %}
{% load static %}

{{ wizard.form.media }}
<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
<form action="" method="post">{% csrf_token %}
    <table>
        {{ wizard.management_form }}
        {% if wizard.form.forms %}
        {{ wizard.form.management_form }}
        {% for form in wizard.form.forms %}
        {{ form.as_table }}
        {% endfor %}
        {% else %}
        {{ wizard.form }}
        {% endif %}
    </table>
    {% if wizard.steps.prev %}
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.first }}">{% trans "first
        step" %}
    </button>
    <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">{% trans "prev
        step" %}
    </button>
    {% endif %}
    <input type="submit" value="{% trans " submit" %}"/>
</form>

views.py

class indexForm(SessionWizardView):
    template_name = "main/indexform.html"
    form_list = [FormStepOne, FormStepTwo]
    def done(self, form_list, **kwargs):
        data_for_step1 = self.get_cleaned_data_for_step('0')
        data_for_step2 = self.get_cleaned_data_for_step('1')
        print(data_for_step1)
        print(data_for_step2)
        return render(self.request, 'main/done.html', {
            'form_data': [form.cleaned_data for form in form_list],
        })

urls.py

path('indexform/', indexForm.as_view(), name='indexform'),

Я не уверен, почему мой bootstrap css не загружается, когда другие css файлы загружаются правильно при добавлении формы wizzard

Вернуться на верх