0

urls.py ファイルに次のコードがあります

urlpatterns = patterns('ecomstore.accounts.views',
                       (r'^register/$', 'register', {'template_name':'registration/register.html', 'SSL':settings.ENABLE_SSL}, 'register'),
                       (r'^my_account/$','my_account', {'template_name':'registration/my_account.html'},'my_account'),
                       (r'^order_details/(?P<order_id>[-\w]+)/$', 'order_details', {'template_name':'registration/order_details.html'}, 'order_details'),
                       (r'^order_info//$', 'order_info', {'template_name':'registration/order_info.html'},'order_info'),
)

を除くすべてのリダイレクト、つまり/register//my_account/などは機能し/order_info//ます。404 ページが見つかりませんというエラーが表示されますが、これが他のエラーと異なる理由がわかりません。

それは私の開発サーバーで動作していますが、何らかの理由でそれが関係している場合、Apache では動作しません。

4

0 に答える 0