views.py
from django.shortcuts import render
from django.http import HttpResponse
from .models import *
def home(request):
return render(request, 'dashboard.html')
def products(request):
products=product.objects.all()
return render(request,'products.html', {'products':products})
def customer(request):
return render(request, 'customer.html')
The error:
from . import views
File "/Users/dileepkumar/Desktop/dj/accounts/views.py", line 12
return render(request,'products.html', {'products':products})
^
TabError: inconsistent use of tabs and spaces in indentation