It says to update the same file "polls/urls.py" twice, but with completely
different code, even through it says to only add the "include".
First
from django.conf.urls import patterns, url
from polls import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index')
)
Second
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)),
)
The "final" second version errors.
--
Ticket URL: <https://code.djangoproject.com/ticket/20954>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => fixed
* needs_tests: => 0
* needs_docs: => 0
Comment:
Didn't read the detail that it was the same file in different folders.
Sorry.
--
Ticket URL: <https://code.djangoproject.com/ticket/20954#comment:1>