Forums

My URLs aren't being matched

Hey!

I tried following the Django 1.7 tutorial, but I have a problem with both /admin and /polls/ giving "Page not found."

You have permission to see my code if that helps you debugging.

((I have clicked the Reload button like she was my lover ^^))

mysite/urls.py

from django.conf.urls import patterns, include, url
from django.contrib import admin

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'mysite.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^polls/', include('polls.urls')),
    url(r'^admin/', include(admin.site.urls)),
)

polls/urls.py

def index(request):
return HttpResponse("Hello, world. You're at the polls index.")

You're still using the default wsgi configuration that is provided with a manual web app setup, so you're not even routing to Django at the moment. Have a look at this and this

Thank you very much. Fixed it now!