新しい Django ビューを作成しました。urls.py
他の作業 URL にパスを追加しました。
url(r'^events/new/$', 'crewcal.views.new_event', name='new_event'),
url(r'^commit/$', 'crewcal.views.commit'),
url(r'^user/(?P<user_id>\d+)/$', profile, name='profile'),
他は正常に動作します。サーバーを再起動してリクエストを送信しようとしましたが、このエラーが発生します。誰でも助けることができますか?
Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/commit
Using the URLconf defined in ssc.urls, Django tried these URL patterns, in this order:
^$ [name='home']
^events/(?P<event_id>\d+)/$
^events/new/$ [name='new_event']
^user/(?P<user_id>\d+)/$ [name='profile']
^register/$ [name='join']
^login/$
^logout/$ [name='logout']
^log_in/$ [name='log_in']
^admin/
The current URL, commit, didn't match any of these.