Answer the question
In order to leave comments, you need to log in
Django social signup networks why 404 error?
Good afternoon! Tell me dear sirs, how to solve my problem?
I installed the package according to the instructions django-allauth.readthedocs.io/en/latest/installati... , but it gives a 404 error.
Page not found (404)
Request Method: GET
Request URL: http://10.5.4.160/
Using the URLconf defined in artgallery.urls, Django tried these URL patterns, in this order:
^admin/
^accounts/
The current URL, , 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.
from django.conf.urls import include, url
from django.contrib import admin
from artgallery import settings
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('allauth.urls')),
Answer the question
In order to leave comments, you need to log in
You don't have a root url, that's why they show you an error Follow
the instructions
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question