AJ NOURI, I had the exact same issue. The trick for me was to edit the existing file at mysite/mysite/urls.py. I had previously created a new file at mysite/urls.py (one directory up). The code from the tutorial works for me now that I have it in the proper directory. Your message was from a couple of months ago, I wanted to add this in case anyone is stuck at the same place.
Nathan On Friday, January 10, 2014 12:40:25 AM UTC-8, AJ NOURI wrote: > > I have Python 2.7.3 > > I am new in django and I am following the tutorial 3 at : > https://docs.djangoproject.com/en/1.6/intro/tutorial03/ > > I followed exactly the steps described: > > Here is a copy/paste from files in the project: > > *cat polls/views.py* > > from django.http import HttpResponse > > def index(request): > return HttpResponse("Hello, world. You're at the poll index.") > > from /mysite: *cat urls.py* > > from django.conf.urls import patterns, include, url > > from django.contrib import admin > admin.autodiscover() > > urlpatterns = patterns('', > url(r'^polls/', include('polls.urls')'), > url(r'^admin/', include(admin.site.urls)'), > ) > > *cat polls/urls.py* > > from django.conf.urls import patterns, url > > from polls import views > > urlpatterns = patterns('', > url(r'^$', views.index, name='index') > ) > > The page debug shows the following error: > [image: enter image description here] > > > It looks like, *it doesn't recognize the "polls" pattern in > /mysite/urls.py.* > > Am I missing something? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/be42c9ac-7cd8-416d-937b-300817a0fc8c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

