Closed alanhamlett closed 8 years ago
When using the template global function csrf_token() with Python3, the token is displayed in your template like b'abcd' when it should just be abcd. To prevent this, turn the bytes token into str.
csrf_token()
b'abcd'
abcd
bytes
str
When using the template global function
csrf_token()
with Python3, the token is displayed in your template likeb'abcd'
when it should just beabcd
. To prevent this, turn thebytes
token intostr
.