CSRF

Django Class Based View Vs Function Based View

The Django view function is responsible to process user request and return a django.http.HttpResponse object to client browser. And view function is defined in Django app views.py file. But besides this, you can also define custom view class to achieve same purpose. Your view class should extends Django provided built-in class-based generic views such as …

Django Class Based View Vs Function Based View Read More »

How To Enable Or Disable CSRF Validation In Django Web Application

Django has provide a feature that can help you to avoid csrf attack on your Django application. But some times especially in your development environment, you do not want this feature when send post request to your web server use curl in command line, if this feature enabled, you will get errors. This article will …

How To Enable Or Disable CSRF Validation In Django Web Application Read More »