Opened 20 years ago
Closed 20 years ago
#1630 closed enhancement (worksforme)
add "host" and "path" to DjangoContext
| Reported by: | oggie rob | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | contrib.admin | Version: | 0.91 |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Change History (2)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
You can do that yourself using the TEMPLATE_CONTEXT_PROCESSORS framework.
Note:
See TracTickets
for help on using tickets.
Damn, forgot about formatting. That is:
self['host'] = request.META['HTTP_HOST'] self['path'] = request.META['PATH_INFO']