I think this is what you are trying to do:
# urls.py
# note 'event_id' will be passed as argument to 'show_event' view.
url(r'events/(?P<event_id>\d+)/$', 'show_event', name='show_event')
# views.py
def show_event(request, event_id):
...
# this will return a 404 response is case event with given id is not found
event = get_object_or_404(Event, id=event_id)
...
return render(request, 'template.html', {'event': event})
# template.html
<h1>Welcome to the event {{event.name}}</h1>
You will use URLs in this way: yourdomain.com/events/123
.
That would pull 123
event id from URL and render template.html
sending the proper event object in the template context, so you can render it as you want.