On any page, if the user is not authorized, there is a link to authorize. I use django.contrib.auth

In urls.py is:

url (r'login $ ', login, {' template_name ':' login.html '}, name =' login '),

In the template, you can specify a link to the page where the user goes after authorization. But I can’t figure out how to pull out the referer there, because there is no request in the template

    1 answer 1

    Django + django.core.context_processors.request in TEMPLATE_CONTEXT_PROCESSORS

    • Exactly, the processor forgot :) - Ekkertan