from django.shortcuts import render
from django.views.decorators.csrf import ensure_csrf_cookie


@ensure_csrf_cookie
def app(request):
    return render(request, 'html.html')

from django.shortcuts import render

def app(request):
    return render(request, 'html.html')

Stop inserting the CSRF token into the main app page
Stop inserting the CSRF token into the main app page

  from django.shortcuts import render
- from django.views.decorators.csrf import ensure_csrf_cookie
  
- 
- @ensure_csrf_cookie
  def app(request):
      return render(request, 'html.html')
  
Stop inserting the CSRF token into the main app page
## Code Before:
from django.shortcuts import render
from django.views.decorators.csrf import ensure_csrf_cookie


@ensure_csrf_cookie
def app(request):
    return render(request, 'html.html')

## Instruction:
Stop inserting the CSRF token into the main app page
## Code After:
from django.shortcuts import render

def app(request):
    return render(request, 'html.html')
