Sunday, September 23, 2018

error at re_path

getting error saying page not found when using re_path for defining our own url pattern. 

re_path(r'^home/(?p<name>[0-9]{4})/$',views.home1),
this was how i used the function and it showing error at ?p.

is there any mistake suggest a solution. 

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMsYeuHzbhA0Pu5gm7t0G4kuMENKf-CNPWQURHSLajGfhDskBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment