Django Questions & Answers
Questions about Django.
-
AutoField vs BigAutoField
What is the difference between an AutoField and a BigAutoField? The documentation says that they're both 64-bit values, but BigAutoField has a higher maximum value(9,223,372,036,854,775,807).
-
How do I send a CSRF token to a JSON API View?
I keep getting an error saying my csrf token is invalid. I've tried sending my request with 'csrf_token' in the json data, but that doesn't work. Any ideas on how to avoid using csrf_exempt for posting a form data to a view that accepts a JSON body?