4đź‘Ť
âś…
The reason for 404
is that there is no matching regex for http://127.0.0.1:8000/
page in your urlpatterns
:
urlpatterns = patterns('',
url('^hello/$', hello)
)
^hello/$
regex matches only http://127.0.0.1:8000/hello/
url.
👤alecxe
3đź‘Ť
You’re defining a URL for /hello
but you aren’t actually going to that URL, you’re going to /
. You need to actually use the “hello” in your browser’s address bar.
👤Daniel Roseman
- [Django]-Multiple User Types In Django
- [Django]-How do I treat django's TemporaryUploadedFile as a regular python file
- [Django]-How to update a single field in a model using UpdateAPIView from Djangorestframework?
- [Django]-Django aggregation over annotated query
Source:stackexchange.com