Can u screenshot d error,  that will b more explanatory

On Aug 15, 2019 19:07, "Kean" <kean...@gmail.com> wrote:

Hi,

I have written the following code in views.py

def editremovebusiness(request):
data = Businessownercreate.objects.all()
context = {
'Creator': obj.Creator,
'Micro_Small_Medium': obj.Micro_Small_Medium,
}
return render(request, 'editremovebusiness.html', context={"data":data})

when I save it and check the url

it returns

Exception Type: NameError
Exception Value:

name 'obj' is not defined



Is anyone familiar with this issue, please advise cause and fix?

Best,

K









-- 
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/django-users/8b426d60-4a54-4ec4-b130-05c0ae69cdd3%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/8b426d60-4a54-4ec4-b130-05c0ae69cdd3%40googlegroups.com?utm_medium=email&utm_source=footer>
.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn70nK_QS_6E%2Bui7Gx4Q4xfE9sv4fbweEQ7Rc0snsa7YkEw%40mail.gmail.com.

Reply via email to