次のような URL があります。
url(r'^(?P<user_id>\d+)/profile/$', views.ProfileView.as_view(), name='profile'),
ユーザーがクリックすると、フォームの更新が行われ、を使用Update Profile
して同じプロファイル URL にリダイレクトされます。message
messaging framework
# views
# Use the message framework to pass the message profile successfully updated
messages.success(request, 'Profile details updated.')
# Redirect to the same view with the profile updated successfully message
return HttpResponseRedirect(reverse('profile', args=(request.user.id,)))
しかし、私はこのエラーが発生します:
NoReverseMatch at /5/profile/
Reverse for 'profile' with arguments '(5L,)' and keyword arguments '{}' not found.
どうしたの?