Answer the question
In order to leave comments, you need to log in
How to access request in Django 1.10?
Good day to all.
Updated to Django 1.10 and got a problem:
there is a template tag,
@register.inclusion_tag('cart_products_counter.html', takes_context=True)
def cart_products_counter(context):
request = context.get("request")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question