google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

context var request not available in my admin (and causing errors to be thrown) #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Grappelli using directions

What is the expected output? What do you see instead?

TemplateSyntaxError at /admin/authors/author/add/
Caught an exception while rendering: Failed lookup for key [request] in u[]
(shows all my config stuff)

What version of the product are you using? On what operating system?
trunk grappelli + django 1.0.2

Please provide any additional information below.

With my invesitagtion... after deleting the lines of code that were
complaining (anything that was a template tag that was given a variable of
request, ex:
{% get_help request.path %} 
{% get_bookmarks request.user request.path title %}
)

I noticed that my admin doesnt have the variable request in its context...

did i miss a step that makes request available in the admin or are you
using the trunk of django?

thanks

Original issue reported on code.google.com by spyyd...@gmail.com on 27 Mar 2009 at 7:03

GoogleCodeExporter commented 9 years ago
OHHHHHHHH

django.core.context_processors.request

is required for template_context_processors

Original comment by spyyd...@gmail.com on 27 Mar 2009 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by sehmaschine on 27 Mar 2009 at 8:04