I carry out the project , which is considered in the official documentation of Django. The polls application works, the admin panel starts, and going to the main page gives the following:
File structure:
firstsite/ firstsite/ __init__.py settings.py urls.py wsgi.py polls/ __init__.py admin.py apps.py migrations/ __init__.py models.py tests.py urls.py views.py static/ manage.py Some content ./firstsite/ settings.py :
... INSTALLED_APPS = [ ... 'polls', ] Content ./firstsite/ urls.py :
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^polls/', include('polls.urls')), ] Content ./polls/ urls.py :
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), ] Content ./polls/ views.py :
from django.shortcuts import render from django.http import HttpResponse def index(request): return HttpResponse("Hello, World!") Server config : Ubuntu 16.04.1, Virtualenv 15.0.1, Virtualenvwrapper 4.3.1-2, Python 3.5.2, Django 1.10.2, Postgre 9.5 + 173, uWSGI 2.0.12-5, Nginx 1.10.
As can be seen from the Python modules - all one to one with the tutorial, and does not work. I'm at a dead end, as I began to learn the framework recently and for the time being, I only understand the principles. Please help!

urls.pyinurls.pyinurlpatterns, and the main page is not there now, write down (do not forget to create a view) - andreymal will appear