TimetableGeneratorApp icon indicating copy to clipboard operation
TimetableGeneratorApp copied to clipboard

"TemplateDoesNotExist" this error was occurred while move on to add information.

Open TENSHKUMAR-KKT-2004 opened this issue 1 year ago • 2 comments

Issue

When I am going to add a course or professors details or other information that send's a error like this.

        TemplateDoesNotExist at /add-professor/

Solution

To solve this problem we need to install the package "crispy-bootstrap4" package first of all.

        pip install crispy-bootstrap4

And in settings.py

        INSTALLED_APPS = [
                ...,
                'crispy_forms',
                'crispy_bootstrap4',  # Forgetting this was probably your error
        ]

And then at the bottom of the page of settings.py

        CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4"
        CRISPY_TEMPLATE_PACK = "bootstrap4" 

This worked for me solving the TemplateDoesNotExist error.

TENSHKUMAR-KKT-2004 avatar Apr 11 '23 16:04 TENSHKUMAR-KKT-2004

Thank You, it helped. And were you able to generate the timetable? Mine was empty when clicked view timetable even after providing all the necessary details

SallyJemimah avatar May 04 '23 12:05 SallyJemimah

i have also try to generate the timetable after fix this issue. But i still can't able to generate the new table.

TENSHKUMAR-KKT-2004 avatar May 04 '23 13:05 TENSHKUMAR-KKT-2004