R
R
Ruslan2016-05-15 13:45:01
Django
Ruslan, 2016-05-15 13:45:01

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.

urls.ry
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')),

If you comment out url(r'^accounts/', include('allauth.urls')), then the main page opens, and if you uncomment it, then a 404 error. What is wrong with me?
Starting the server via python manage.py runserver 0.0.0.0:80 but not apache. I suspect a problem with routes, but I don’t understand where exactly.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-05-16
@sim3x

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 question

Ask a Question

731 491 924 answers to any question