This is the code that gives the error in the question:
def editemp(request, id): cust = Customer.objects.get(id=id) return render(request, \'edit.html\',