The current URL, app/, didn't match any of these

前端 未结 8 755
無奈伤痛
無奈伤痛 2020-12-17 17:58

I\'m a newbie in Django and just started looking at it before a day by installing Django 1.10 on my local.

I\'ve followed all the instructions of this link https://d

8条回答
  •  星月不相逢
    2020-12-17 18:34

    change the mysite/url

        from django.conf.urls import patterns,include, url
        from django.contrib import admin
    
        urlpatterns = patterns('',
        url(r'^&', include('polls.urls')),
        url(r'^admin/', include(admin.site.urls)),
        )
    

    Then run your server and visit 127.0.0.1/8000. This should take you to the index of ur website.

    or you leave your code as it is and run 127.0.0.1/8000/polls on your browser

提交回复
热议问题