[Answer]-Why does my query in views.py give me a a TypeError?

1👍

According to the configured url:

url(r"^reviews/(?P<username>\w+)/$", show_reviews)

you are capturing username from the URL. Your view should have it as an argument:

def show_reviews(request, username):
    ...
👤alecxe

Leave a comment