Django-регистрация не распознает страницу аккаунтов urls.py? - PullRequest
0 голосов
/ 22 сентября 2011

Я пытаюсь настроить django-регистрацию, и она не распознает URL-адреса. Я получаю сообщение об ошибке 404 при посещении http://localhost:8000/accounts/

    Page not found (404)
Request Method:     GET
Request URL:    http://localhost:8000/accounts/

Using the URLconf defined in namekeepr.urls, Django tried these URL patterns, in this order:


    ^pk/$
    ^pk/index/$
    ^admin/
    ^accounts/ ^activate/complete/$ [name='registration_activation_complete']
    ^accounts/ ^activate/(?P<activation_key>\w+)/$ [name='registration_activate']
    ^accounts/ ^register/$ [name='registration_register']
    ^accounts/ ^register/complete/$ [name='registration_complete']
    ^accounts/ ^register/closed/$ [name='registration_disallowed']
    ^accounts/ ^login/$ [name='auth_login']
    ^accounts/ ^logout/$ [name='auth_logout']
    ^accounts/ ^password/change/$ [name='auth_password_change']
    ^accounts/ ^password/change/done/$ [name='auth_password_change_done']
    ^accounts/ ^password/reset/$ [name='auth_password_reset']
    ^accounts/ ^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$ [name='auth_password_reset_confirm']
    ^accounts/ ^password/reset/complete/$ [name='auth_password_reset_complete']
    ^accounts/ ^password/reset/done/$ [name='auth_password_reset_done']
    ^admin/
    ^accounts/profile/$
    ^accounts/password_reset/$
    ^accounts/password_reset_done/$
    ^accounts/password_change/$
    ^accounts/password_change_done/$

The current URL, accounts/, didn't match any of these.

Ответы [ 2 ]

1 голос
/ 22 сентября 2011

на основе ответа сервера, вы не определили URL для ^/accounts/$ (корень учетных записей)

1 голос
/ 22 сентября 2011

Попробуйте перейти к http://localhost:8000/accounts/ с косой чертой в конце.Это «обычный» django url, обычно он перенаправляет на это, но это не по какой-то причине .... но прежде чем пытаться решить эту проблему , убедитесь, что она работает именно таким образом.1005 *

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...