Opened 9 years ago

Closed 9 years ago

#3584 closed (wontfix)

Specifying default context instance in settings

Reported by: bugs@… Owned by: nobody
Component: Template system Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


There should be a way to specify default context in settings instead of appending context_instance=RequestContext(request) to every single render_to_response call in whole application.

This one make developers cry.

Change History (2)

comment:1 Changed 9 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

You can always write your own shortcut. It is a common use case however, so I'll push to DDN.

comment:2 Changed 9 years ago by SmileyChris

  • Resolution set to wontfix
  • Status changed from new to closed

You can use django.views.generic.simple.direct_to_template instead of django.shortcuts.render_to_response

Note: See TracTickets for help on using tickets.
Back to Top