How can I use dental teeth section. For example, do I need to include 32 fields from the model to specify 32 teeth, or is there a way to do it in one?
On Tuesday, March 14, 2023 at 5:39:27 AM UTC+5 Muhammad Juwaini Abdul Rahman wrote:
In my previous case, I only use this:On Tue, 14 Mar 2023 at 04:33, Prosper Lekia <lekiap...@gmail.com> wrote:This is how I deal with all csrf related issues.Make sure csrf MiddleWare is in your MiddleWare list'django.middleware.csrf.CsrfViewMiddleware'Add the settings below in your settings.py to prevent all csrf related issuesSECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')CSRF_USE_SESSIONS = FalseCSRF_COOKIE_SECURE = TrueSECURE_BROWSER_XSS_FILTER = TrueCORS_ALLOW_CREDENTIALS = TrueCORS_ORIGIN_ALLOW_ALL = TrueSECURE_CONTENT_TYPE_NOSNIFF = TrueSECURE_FRAME_DENY = TrueSECURE_HSTS_SECONDS = 2592000SECURE_HSTS_INCLUDE_SUBDOMAINS = TrueSECURE_HSTS_PRELOAD = TrueX_FRAME_OPTIONS = 'SAMEORIGIN'SECURE_REFERRER_POLICY = 'same-originOn Saturday, March 11, 2023 at 7:04:40 PM UTC+1 James Hunt 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.RegardsJames--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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3f7e8ff3-3619-4ddf-8517-0ee3a613ed20n%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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a1746f7f-6bec-4031-9675-650d9bf41754n%40googlegroups.com.