You need to set your index path in urls.py like this:
path(' ', <your view>, <url name>)

On Fri, Sep 4, 2020 at 11:49 PM Boi Deekay <[email protected]> wrote:

> 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.
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bb0fa594-2099-4128-a500-f70e0a846e6cn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/bb0fa594-2099-4128-a500-f70e0a846e6cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANV3w%3Da1FAvityOkJAAXdccKQSuRkuFFt%3DZuk-SYoQ3VRcjRZA%40mail.gmail.com.

Reply via email to