--- Я на Ubuntu ---Джанго Хрустящие Формы не загружая надлежащего templatepack
Я пытаюсь настройки Django Хрустящие форм и получаю следующее сообщение об ошибке:
Exception Type: TemplateDoesNotExist
Exception Value:
bootstrap3/layout/buttonholder.html
Settings.py настройки шаблона
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {...............
Шаблон-погрузчик посмертных
Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
/home/schachte/Documents/School/cse360/CSE_360_Project/CSE360_Project/ipcms/ipcms/templates/bootstrap3/layout/buttonholder.html (File does not exist)
Using loader django.template.loaders.app_directories.Loader:
/usr/local/lib/python2.7/dist-packages/Django-1.8.4-py2.7.egg/django/contrib/admin/templates/bootstrap3/layout/buttonholder.html (File does not exist)
/usr/local/lib/python2.7/dist-packages/Django-1.8.4-py2.7.egg/django/contrib/auth/templates/bootstrap3/layout/buttonholder.html (File does not exist)
/usr/local/lib/python2.7/dist-packages/crispy_forms/templates/bootstrap3/layout/buttonholder.html (File does not exist)
Довольно очевидно, что в каталоге нет того, что он пытается найти, но как я могу сделать хрустящие формы найти правильный каталог начальной загрузки?
Yah, поэтому я просматривал файлы в репо и понял, что ButtonHolder устарел. Благодарю. – Ryan
OMG, мне это очень помогает! После обновления crispy у меня был только django.template.base.TemplateDoesNotExist: my_htmnl.html во всех формах, которые использовали ButtonHolder. Было трудно понять причину, я думаю, что это должно хотя бы вызвать некоторое предупреждение вместо TemplateDoesNotExist. – user3479125