I have create Event in model and retrieve that value in html the error goes on please tell me solution
My Code is Below:
Anyone please Help me
I have create Event in model and retrieve that value in html the error goes on please tell me solution
My Code is Below:
Anyone please Help me
It’s a bit hard to debug since you haven’t provided the full stack trace. Please show that in future issues.
My guses is that your view is called Event
, the same as your model. Therefore the line Event.objects.all()
is trying to access the objects
attribute on that function.
It is more idiomatic to name your view event
(lowercase e
) - all functions in Python tend to have lowercase names.
Have you completed the Django tutorial ? It covers creating views and classes and should guide you towards the basic app structure.
I have solve my problem thats right your answer thanks friends