#28088: Overriding the built-in Django form widget HTML doesn't work ----------------------------------+-------------------------------------- Reporter: Daniel Greenfeld | Owner: nobody Type: Bug | Status: closed Component: Documentation | Version: 1.11 Severity: Normal | Resolution: invalid Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------+-------------------------------------- Changes (by Florian Apolloner):
* status: new => closed * resolution: => invalid Comment: Two things need changing: * Change FORM_RENDERER to TemplateSettings: https://docs.djangoproject.com/en/1.11/ref/forms/renderers/#templatessetting * Fix the template include paths so BASE_DIR is in there (django search literally for django/forms/widgets…) Closing this since it is in the documentation (https://docs.djangoproject.com/en/1.11/ref/forms/renderers/#overriding- built-in-widget-templates): > If you use the TemplatesSetting renderer, overriding widget templates works the same as overriding any other template in your project. You can’t override built-in widget templates using the other built-in renderers. That said we will happily take PR improving the wording. -- Ticket URL: <https://code.djangoproject.com/ticket/28088#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.3de8cab4a88c1ea8e145cfe083e00fa7%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.