#36044: Reusable form templates example lead to a TemplateDoesNotExist error
-------------------------------------+-------------------------------------
Reporter: Guillaume LEBRETON | Owner: Guillaume
Type: | LEBRETON
Cleanup/optimization | Status: closed
Component: Documentation | Version: 5.1
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Kevin Renskers):
I ran into the exact same problem: when following the docs on
https://docs.djangoproject.com/en/5.1/topics/forms/#reusable-form-
templates with a standard Django project, created by the startproject
command, you get a TemplateDoesNotExist error.
And no, I didn't have TemplatesSetting configured, since the default
project settings don't do that. And this is not mentioned at
https://docs.djangoproject.com/en/5.1/topics/forms/#reusable-form-
templates at all. So I find it a bit strange that this issue got closed
without any changes to the docs at all. Can the documentation at least
tell users that they need to add `django.forms` to their `INSTALLED_APPS`
for this to work?
> I'm unsure if modifying the example would improve it since what works
"out of the box" for one project may not work for another.
The example on https://docs.djangoproject.com/en/5.1/topics/forms
/#reusable-form-templates results in an error ''by default'', with a
standard Django project as created by the startproject command. It's a
pretty bad user experience when you run into this and you're scratching
your head why the example doesn't work.
--
Ticket URL: <https://code.djangoproject.com/ticket/36044#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701960fb3497d-47bd56f9-6966-4364-b485-1239ceed2881-000000%40eu-central-1.amazonses.com.