I'm a complete Django newbie and I am following the tutorial:
https://docs.djangoproject.com/en/1.11/intro/tutorial01/
I have got to the stage:
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] in mysite/urls.py, but when I do:
python manage.py runserver I get a 404 error in the browser at the address
http://localhost:8000/polls/ I am using python 2.7.6 and Django 1.11.5
My urls.py is
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] In the terminal session I get
Not Found: /polls/ [05/Oct/2017 12:25:22] "GET /polls/ HTTP/1.1" 404 1951 when I load the web page in the browser
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'polls', ] Can someone please point out what might be wrong?
pollsunder INSTALLED_APPS in thesettings.py