Hello, I am a Django beginner.
I am trying to understand template engine.
one of my HTML template is like this:
<h1>nothing</h1>
<p>hello works</p>
{{ request.user.is_authenticated }} 
the error showing in the browser:
Error at /
Incorrect padding
| Request Method: | GET | 
|---|---|
| Request URL: | http://0.0.0.0:8000/ | 
| Django Version: | 2.0.7 | 
| Exception Type: | Error | 
| Exception Value: | Incorrect padding | 
| Exception Location: | /home/dip05/anaconda3/lib/python3.7/base64.py in b64decode, line 87 | 
| Python Executable: | /home/dip05/anaconda3/bin/python | 
| Python Version: | 3.7.3 | 
| Python Path: | [’/home/dip05/new_try’, ‘/home/dip05/anaconda3/lib/python37.zip’, ‘/home/dip05/anaconda3/lib/python3.7’, ‘/home/dip05/anaconda3/lib/python3.7/lib-dynload’, ‘/home/dip05/.local/lib/python3.7/site-packages’, ‘/home/dip05/anaconda3/lib/python3.7/site-packages’] | 
if I remove this line:
{{ request.user.is_authenticated }}
it works.
can anyone explain what’s going on?