django-allauth basic setup

Written by:

django-allauth basic setup
  • 0.00 / 5 5
0 votes, 0.00 avg. rating (0% score)

I tried to follow the latest file looks like:

urlpatterns = patterns('',
    url(r'^admin/', include(,
    url(r'^accounts/', include('allauth.urls')),
) file has:


    # Required by allauth template tags
    # allauth specific context processors

    # Needed to login by username in Django admin, regardless of `allauth`
    # `allauth` specific authentication methods, such as login by e-mail

and i ran python syncdb but when i visit my localhost:8000/accounts/login/, it gives me Page Not Found (404). I also double checked what I did with a tutorial at: but I’m not sure what else to do to get a basic login screen to show up. Any pointers?


here’s the error on the page in addition to the Page Not Found 404

    Using the URLconf defined in asa.urls, Django tried these URL patterns, in this order:
    ^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/ ^ ^confirm_email/(?P<key>w+)/$
    ^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/

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

Just to check: have you started your server?

python runserver


It looks like you’re trying accounts/profile/, which isn’t a registered URL. Does it still give an error if you go to localhost:8000/accounts/register?

Also, from the docs:

When I attempt to login I run into a 404 on /accounts/profile/

When you end up here you have successfully logged in. However, you will need to implement a view for this URL yourself, as whatever is to be displayed here is project specific. You can also decide to redirect elsewhere.

Looks like you need to write your own view for accounts/profile/

If you want, you can set your login redirect to a different page in I.e.:


This would send you back to your homepage.

Leave a Reply