Файл не найден с помощью PyInstaller и Django

Я использую PyInstaller для приложения Django, с некоторыми трудностями мне удалось сгенерировать .exe файл и приложение запускается, но когда я пытаюсь просмотреть любую страницу, я получаю ошибку TemplateDoesNotExist.

Django tried loading these templates, in this order:

Using engine django:

    django.template.loaders.filesystem.Loader: C:\path\to\project\dist\vale_remote\_internal\src\dashboard\templates\dashboard\pages\dashboard.html (Source does not exist)
    django.template.loaders.filesystem.Loader: C:\path\to\project\dist\vale_remote\_internal\src\interview\templates\dashboard\pages\dashboard.html (Source does not exist)
    django.template.loaders.filesystem.Loader: C:\path\to\project\dist\vale_remote\_internal\src\vale_remote\templates\dashboard\pages\dashboard.html (Source does not exist)
    django.template.loaders.app_directories.Loader: C:\path\to\project\dist\vale_remote\_internal\django\contrib\admin\templates\dashboard\pages\dashboard.html (Source does not exist)
    django.template.loaders.app_directories.Loader: C:\path\to\project\dist\vale_remote\_internal\django\contrib\auth\templates\dashboard\pages\dashboard.html (Source does not exist)

Если я перехожу в папку '_internal', то не вижу папки 'src', я не знаю, нужно ли мне изменить путь к шаблонам или я должен как-то создать эту папку src. В моей "нормальной" структуре папок (не сгенерированной PyInstaller) шаблон, который ищет django, находится в project/dashboard/templates/dashboard/pages/dashboard.html

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