L
L
leha782016-02-19 08:54:51
Django
leha78, 2016-02-19 08:54:51

There is an error in the tag, how to fix it?

I don't understand what is wrong
0dda0bc973e9478a965efe80ab3ca078.png316369b89ec540d98adcdc4e94acee05.png40d4dda355204a8d92fa224b33c35b76.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2016-02-19
@sergey-gornostaev

The error says that request is not in the context.
django.core.context_processors.request in context_processors is there?

D
Dmitry Voronkov, 2016-02-19
@DmitryVoronkov

TEMPLATE_CONTEXT_PROCESSORS = ("django.core.context_processors.request",)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question