I have a problem with the code in the line 62 and i dont know how to fix this, its the first time i recive this error. Seems that is not well identated but i think it was. Is in the line with 'mes = lista_meses[tempNumMes-1]'
views.py
def crear_pdf(request):
fecha = datetime.date.today()
tempNumMes = fecha.month
year = fecha.year
lista_meses = ["Enero"
, "Febrero"
, "Marzo"
, "Abril"
, "Mayo"
, "Junio"
, "Julio"
, "Agosto"
, "Septiembre"
, "Octubre"
, "Noviembre"
, "Diciembre"]
mes = lista_meses[tempNumMes -1]
return render(request,'pdf_creado.html')