Error 'Event' object has no attribute 'get'

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.

name ‘Event’ is not defined

1 Like

This this view.py

I have solve my problem thats right your answer thanks friends