allauth urls are not accessible - 404 error

889 views Asked by At

Can someone please help to solve my issue. Thanks in advance

when i try to access 'accounts/' in django,then causing 404 error. I'm using allauth.

URL Trying to access : http://127.0.0.1:8000/accounts/

URL's below are showing errors: Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/accounts/ Using the URLconf defined in videoservice.urls, Django tried these URL patterns, in this order:

    admin/
    accounts/ ^ ^signup/$ [name='account_signup']
    accounts/ ^ ^login/$ [name='account_login']
    accounts/ ^ ^logout/$ [name='account_logout']
    accounts/ ^ ^password/change/$ [name='account_change_password']
    accounts/ ^ ^password/set/$ [name='account_set_password']
    accounts/ ^ ^inactive/$ [name='account_inactive']
    accounts/ ^ ^email/$ [name='account_email']
    accounts/ ^ ^confirm-email/$ 
    [name='account_email_verification_sent']
    accounts/ ^ ^confirm-email/(?P<key>[-:\w]+)/$ 
    [name='account_confirm_email']
    accounts/ ^ ^password/reset/$ [name='account_reset_password']
    accounts/ ^ ^password/reset/done/$ 
    [name='account_reset_password_done']
    accounts/ ^ ^password/reset/key/(?P<uidb36>[0-9A-Za-z]+)-(? 
    P<key>.+)/$ [name='account_reset_password_from_key']
    accounts/ ^ ^password/reset/key/done/$ 
    [name='account_reset_password_from_key_done']
    accounts/ ^social/
    ^static/(?P<path>.*)$
    ^media/(?P<path>.*)$

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

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

2

There are 2 answers

0
Data Real World On

The issue was fixed by running the command "python manage.py migrate --run-syncdb".

0
Ivan Beliakov On

A warning for those searching this problem.

I recently had the same error when trying to reach http://127.0.0.1:8000/accounts/login/. The reason was that I was logged in as the admin. After I signed out from the admin page, the problem disappeared