Django admin raises CSRF verification failed when changing from DEBUG True - > False

1,683 views
Skip to first unread message

Muhammed Riyas

unread,
Jul 20, 2016, 8:14:17 AM7/20/16
to Django users
Hi All,

I am having a difficulty with my Django site. In which I was running smoothly in dubug mode(DEBUG = True). While changing it to DEBUG = False (Also set ALLOWED_HOSTS = ['*']) , it raises error when logging in to admin 
"

Forbidden (403)

CSRF verification failed. Request aborted.

More information is available with DEBUG=True."

I haven't set any value in CSRF_COOKIE_DOMAIN and CSRF_COOKIE_SECURE

I couldn't find any information on log. What is the reason behind this.?

Juan Pedro Lipari

unread,
Jan 17, 2017, 9:42:21 AM1/17/17
to Django users
I have the same problem
Message has been deleted

Ruben Alves

unread,
Aug 11, 2017, 2:56:14 PM8/11/17
to Django users
Same problem here.

Reply all
Reply to author
Forward
0 new messages