Django. runserver: “No Found: / ”



  • Consistency of action on documentation Django: django-admin startproject mysitepython manage.py migratepython manage.py runserverServer's starting, but I get a message:

    Not Found: /

    I didn't change anything. Why does this problem arise and how to get rid of it? введите сюда описание изображения



  • When you create a new project, urls.py Yes. url(r'^admin/', admin.site.urls) You'll only have a page. /admin
    To add the other urls to your project, you have to record them. urls.py and create a processor for them views.py


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2