django - Runserver: " Not Found: / " -


i executed runserver test django framework appears message " not found: / ". when try page localhost:8000 works fine, message still there. idea?

p.s. tried localhost:8000/admin , message not appear.

enter image description here

urls.py

from django.conf.urls import url django.contrib import admin  urlpatterns = [     url(r'^admin/', admin.site.urls), ] 

this happens because didn't define pattern in urls.py matches / , have views matches admin/.

if want show in http://127.0.0.1:8000/ need create view first , add urls.py

`url(r'^$', 'myview', name='myview'),`` 

i recommend follow django tutorial


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -