I started with Django using the tutorial with the polls (as seen on the PyCharm site https://www.jetbrains.com/pycharm/help/creating-and-running-your-first-django-project.html). I use Python 3.5.1, Django 1.9.4 and Pycharm 5.0.4, the tutorial is from December 2015 and asks for at least Python 3.4.1. and Django 1.8.0 or higher.
The problem is, I guess, in the file urls.py (which is based in the polls-app folder). The content is:
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^polls/', include('polls.urls')), #this line added
url(r'^admin/', include(admin.site.urls)),
]
and the error message I receive, when visiting http://127.0.0.1:8000/polls/1
Using the URLconf defined in mysite.urls, Django tried these URL
> patterns, in this order:
> 1. ^polls/ ^$ [name='index']
> 2. ^admin/
> The current URL, polls/1, didn't match any of these.