Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add to documentation that for generic views you need the "request" obj #8

Closed
ogirardot opened this Issue Nov 24, 2012 · 2 comments

Comments

Projects
None yet
2 participants

Hi,
trying to use the app with django>=1.4 and within a generic view, i stumbled upon a key error in your template tag, because it expected the request to be available within the context.
So i needed to add

TEMPLATE_CONTEXT_PROCESSORS = (
    "django.core.context_processors.request",
    "django.contrib.auth.context_processors.auth",
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
    "django.core.context_processors.static",
    "django.core.context_processors.tz",
    "django.contrib.messages.context_processors.messages",
)

to my settings.py, for everything to work out as expected.
Regards,

Olivier.

Contributor

vdboor commented Nov 24, 2012

Thanks, I'll update the documentation. :)

Contributor

vdboor commented Dec 6, 2012

I've fixed this in a different way, the views no longer require the request context processor to be included.

@vdboor vdboor closed this Dec 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment