Check out this link but are you using csrf token before accepting any input. https://stackoverflow.com/questions/3197321/csrf-error-in-django
Sent from awwal > On 11 Mar 2023, at 7:04 PM, James Hunt <[email protected]> wrote: > > Hi there. I am fairly new to Django but have had previous success with > creating an app and being able to access the Admin page. > Recently, if I attempt to access the admin page of a new Django app it throws > the CSRF error upon trying to log in!!! > > I have attempted several ways to bypass this error including adding allowed > hosts but I cant seem to get past this issue. > > Can someone please provide me with the definitive way of stopping CSRF error > when simply trying to access the admin part of Django? I mean there are no > post functions that really apply to this feature so I cant understand the > CSRF token. > > I cant get past this issue which means I can never access the admin page!! > > Please help. > > Regards > > James > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/e13c7765-831e-45c5-b091-c8fcfbed19c5n%40googlegroups.com. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/25574CBA-771F-41FB-8EDD-7C17273C5CF8%40gmail.com.

