"""Please, I have created some model classes in my django app.models. I want to access to objects of any of the models in my views based on request.
My view looks like this:
def profile(request, course):
Course_name = course
Contents = model.objects.get()
context = {obj: contents}
return render(request, "pro.html", context)
"""My question is, I want to replace model in model.objects.get() with the variable "course_name" But am getting this error, 'str' object has no attribute 'objects' Please Help"""