Note that there are some explanatory texts on larger screens.

plurals
  1. PONo module named urls
    primarykey
    data
    text
    <p>I'm following the Django Tutorials, I'm at the end of part 3, at Decoupling the URLconfs, at <a href="http://docs.djangoproject.com/en/1.1/intro/tutorial03/#intro-tutorial03" rel="noreferrer">http://docs.djangoproject.com/en/1.1/intro/tutorial03/#intro-tutorial03</a> and I'm getting a "No module named urls" error message.</p> <p>When I change:</p> <pre><code>from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('mysite.polls.views', (r'^polls/$', 'index'), (r'^polls/(?P&lt;poll_id&gt;\d+)/$', 'detail'), (r'^polls/(?P&lt;poll_id&gt;\d+)/results/$', 'results'), (r'^polls/(?P&lt;poll_id&gt;\d+)/vote/$', 'vote'), (r'^admin/', include(admin.site.urls)), ) </code></pre> <p>to:</p> <pre><code>from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^polls/', include('mysite.polls.urls')), (r'^admin/', include(admin.site.urls)), ) </code></pre> <p>I changed <code>include('mysite.polls.urls')),</code> to <code>include(mysite.polls.urls)),</code>, but it still didn't work.</p> <p>How to solve this problem?</p> <p>UPDATE 1: The full error message is at <a href="http://dpaste.com/166201/" rel="noreferrer">http://dpaste.com/166201/</a></p> <p>UPDATE 2: at mysite/polls/urls.py is</p> <pre><code>from django.conf.urls.defaults import * urlpatterns = patterns('mysite.polls.views', (r'^$', 'index'), (r'^(?P&lt;poll_id&gt;\d+)/$', 'detail'), (r'^(?P&lt;poll_id&gt;\d+)/results/$', 'results'), (r'^(?P&lt;poll_id&gt;\d+)/vote/$', 'vote'), ) </code></pre> <p>UPDATE 3: the really full error message splitted in screenshots is at</p> <p><a href="http://i.imagehost.org/0191/python_1.png" rel="noreferrer">http://i.imagehost.org/0191/python_1.png</a><br> <a href="http://i.imagehost.org/0426/python_2.png" rel="noreferrer">http://i.imagehost.org/0426/python_2.png</a><br> <a href="http://g.imagehost.org/0191/python_3.png" rel="noreferrer">http://g.imagehost.org/0191/python_3.png</a><br> <a href="http://g.imagehost.org/0413/python_4.png" rel="noreferrer">http://g.imagehost.org/0413/python_4.png</a><br> <a href="http://i.imagehost.org/0370/python_5.png" rel="noreferrer">http://i.imagehost.org/0370/python_5.png</a><br> <a href="http://i.imagehost.org/0317/python_6.png" rel="noreferrer">http://i.imagehost.org/0317/python_6.png</a></p> <p>UPDATE 4: the whole project is at</p> <p><a href="http://www.mediafire.com/?t1jvomjgjz1" rel="noreferrer">http://www.mediafire.com/?t1jvomjgjz1</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload