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.
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
Post a Comment