Reverse for 'profile' with arguments '(None,)' not found. 1 pattern(s) tried: ['profile/(?P<user_id>[0-9]+)\\Z']

Hello,

I passed the user in here

profile_user = User.objects.get(pk = user_id)

context = {
    "profile_user": profile_user,

Or am I to include the user_id in the context like this

context = {
    "profile_user": profile_user,
    "user_id": user_id,