Help. if i runserver I get this error

20 views
Skip to first unread message

Boi Deekay

unread,
Sep 4, 2020, 12:49:27 PM9/4/20
to Django users
Page not found (404)Request Method:
GETRequest URL:
http://127.0.0.1:8000/

Using the URLconf defined in myFirstPy.urls, Django tried these URL patterns, in this order:

  1. text/
  2. admin/

The empty path didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

hans alexander

unread,
Sep 5, 2020, 3:07:34 AM9/5/20
to django...@googlegroups.com
You need to set your index path in urls.py like this:
path(' ', <your view>, <url name>)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bb0fa594-2099-4128-a500-f70e0a846e6cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages