#26996: Upgrade path for custom Context subclasses isn't documented -------------------------------+-------------------------------------- Reporter: pembo13 | Owner: nobody Type: Bug | Status: closed Component: Documentation | Version: 1.10 Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by aaugustin): Well, technically, you could try passing a subclass of `dict` as the `context` argument of `render_to_response`. I have no idea whether this is a reasonable way to achieve your goals, since I don't know what you're trying to do, and this is likely not the first thing I would attempt. I'd probably go for a custom template backend if I needed this level of customization. Look at `django.template.backends.django`, there isn't a lot of code in there. -- Ticket URL: <https://code.djangoproject.com/ticket/26996#comment:4> 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.545daf04fd9866d32813ffa5227a6481%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.