Hi!
Can you paste views.cregister
and projectname/urls.py ?
Missatge de Kean <keanld1@gmail.com> del dia dl., 26 d'ag. 2019 a les 19:10:
Hi,--I'm new to Django. I created several urls, in urls.py, however, when I try to navigate to the URL it says page not found.Page not found (404)
Request Method: GET Request URL: http://127.0.0.1:8000/register Using the URLconf defined in
bnt.urls
, Django tried these URL patterns, in this order:
- admin/
- [name='home']
- /login [name='clogin']
- /login/customer [name='cpage']
- /register [name='cregister']
- /register/customer [name='cpage']
The current path,
register
, didn't match any of these.urls.pyfrom django.conf.urls import urlfrom django.urls import pathfrom . import viewsurlpatterns = [path('', views.home, name='home'),path('/login', views.clogin, name='clogin'),path('/login/customer', views.cpage, name='cpage'),path('/register', views.cregister, name='cregister'),path('/register/customer', views.cpage, name='cpage'),path('/logout', views.clogout, name='clogout'),]Please can anyone advise, if they had this issue and how they resolved,
Best,K
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a72d003-fcf7-4280-8635-6f4986f3e002%40googlegroups.com.
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK-JoTTb_a4392MBgNy12vVCayYtsxzijfC%3DznY3NK5kP5Bcfg%40mail.gmail.com.
No comments:
Post a Comment