Admin site in Django 1.8 tutorial giving CSRF errors

123 views
Skip to first unread message

David Riddle

unread,
May 6, 2015, 4:04:28 PM5/6/15
to django...@googlegroups.com
Hi,

I am working through the Django 1.8 tutorial. I finished part one and
am starting on part 2. I created an admin user but when I login to the
/admin page I receive a 403 Error because CSRF verification failed.

https://docs.djangoproject.com/en/1.8/intro/tutorial02/

Any idea what the problem is?

Thanks,

David R.

aRkadeFR

unread,
May 7, 2015, 4:05:50 AM5/7/15
to django...@googlegroups.com
Hey,

You shouldn't see these errors since the templates with the form
and so the CSRF token are generated from the contrib app admin.

Could you provide us more details of the error? Did you override
the admin templates?

Thanks,

aRkadeFR
--
aRkadeFR

David Riddle

unread,
May 7, 2015, 11:37:10 AM5/7/15
to django...@googlegroups.com
No I have not made any changes to the admin templates. I simply
followed the instructions in the tutorial. I am using Django's
runserver per the tutorial instructions. I am totally stumped.

David
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/554B1CA7.2090800%40arkade.info.
> For more options, visit https://groups.google.com/d/optout.



--
Always code as if the (person) who ends up maintaining your code will
be a violent psychopath who knows where you live.
- M. Golding

aRkadeFR

unread,
May 11, 2015, 4:02:07 AM5/11/15
to django...@googlegroups.com
Can you provide us more information?
Your url / views + admin.py and the settings
at least?

Thanks
aRkadeFR

Reply all
Reply to author
Forward
0 new messages