私のdjangoサイトのサイドバーにリンクがあり、テンプレートでは次のようになっています。
<li><a href="profile">Profile</a></li>
urls.py で:
url(r'^(?P<user_id>\d+)/profile/$', 'auth.views.show_profile', name='profile')
メインページから url: で /1001/profile/
アクセスすると正常にロードされますが、別のサブページから url: でアクセスしようとすると/1001/forms/profile/
、エラーが表示されます: The current URL, /1001/forms/profile/
, did not match any of these. どうすればこれを修正できますか?