5👍
✅
Just use the csrf_exempt decorator.http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#exceptions
And yes, use the POST request type, it’s the only logical choice when you’re sending data to the server. As per RESTful API guidelines: http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services
1👍
You can solve CSRF Issue. in django 1.4
Just using decoration at front of function.
Solution:
@csrf_exempt
def PostData(requst):
pass
- [Django]-Celery: running a worker with superuser privileges
- [Django]-Django import client
- [Django]-Django psycopg2.errors.InvalidSchemaName: no schema has been selected to create in
- [Django]-Django: TemplateDoesNotExist error for base template
- [Django]-Getting date from Django datetime field with F() expression
- [Django]-Django 1.4 static files problems and don't render at other urls of my project
- [Django]-Django import-export exclude not working
Source:stackexchange.com