Nov-16-2018, 09:32 AM
Hi
I am learning django but python environment setting is complicated. Here is the error when i run server and open 127.0.0.1:8000/admin
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/admin
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
1 ^admin/
2 ^webapp/
The current path, admin, 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.
I am learning django but python environment setting is complicated. Here is the error when i run server and open 127.0.0.1:8000/admin
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/admin
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
1 ^admin/
2 ^webapp/
The current path, admin, 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.