1👍
By including ‘TEST_PAGE
‘ twice(in both urls.py
), you have defined a url:
/TEST_PAGE/TEST_PAGE
So
django
can find url /TEST_PAGE/TEST_PAGE
but not /TEST_PAGE
Your Mysite/TEST_PAGE/urls.py
should be:
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='TEST_PAGE'), # maps to /TEST_PAGE/
]
Source:stackexchange.com