Nisha Patel
Problem
I am new to Django following a tutorial, but cannot get past this error message from Django. I am typing in the file path exactly, but it will not work.
Here are the website URLs .py:
Here is the app's urls .py:
Here is the app's view.py
--Thank you.
I've tried >http://127.0.0.1:8000/hello and >http://127.0.0.1:8000/testAPP/hello and both have given me the same message that they do not match. Please help:
Solution
You should visit /hello/hello/, the first one from the path("hello/", include('testApp.urls')), and the second from the path('hello/', views.say_hello).
Likely however you want to remove the second one, so:
then it is /hello/
Note: Django's apps normally are written in snake_case, so test_app, not testApp.