Opened 18 years ago
Closed 17 years ago
#3584 closed (wontfix)
Specifying default context instance in settings
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Design decision needed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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 by , 18 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → 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.
You can always write your own shortcut. It is a common use case however, so I'll push to DDN.