1

Possible Duplicate:
How to access RequestContext in class-based generic views?

I am using django-registration, which uses the django.contrib.auth.views.auth_login and django.contrib.auth.views.auth_login views to provide login & logout. However, when it renders my registration/login.html and registration/logout.html templates, the RequestContext isn't included. What's the best way to get the RequestContext in these templates without monkey patching?

Community
  • 1
  • 1
Jamie Forrest
  • 10,895
  • 6
  • 51
  • 68
  • 1
    Relevant: http://stackoverflow.com/questions/10162940/how-to-access-requestcontext-in-class-based-generic-views – Alex Hart Sep 19 '12 at 16:41

1 Answers1

0

Per Alex's comment, adding the following worked:

TEMPLATE_CONTEXT_PROCESSORS = (
    # ... other context processors here
    'django.core.context_processors.request',
)
Community
  • 1
  • 1
Jamie Forrest
  • 10,895
  • 6
  • 51
  • 68