Reputation: 354
---I am on Ubuntu---
I am trying to setup Django Crispy forms and getting the following error:
Exception Type: TemplateDoesNotExist
Exception Value:
bootstrap3/layout/buttonholder.html
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)
It's pretty obvious that the dir is not there that it's trying to find, but how can I make crispy forms find the correct bootstrap directory?
Upvotes: 2
Views: 1501
Reputation: 7386
ButtonHolder
isn't part of the Bootstrap template pack. It's documented as not being so.
Best bet is to use FormActions
instead
Upvotes: 4
Reputation: 166
Where do you currently save your static content. The issue seems to be due to Django's inability to find your static content from bootstrap.
Upvotes: 0