Monday, September 24, 2018

Re: error at re_path

Hi,


Not 100% sure, but I think that the 'p' should be a "P" (capital).


I've always used the capital version, since it's was is shown in the docs and examples, so I can't say if lowercase 'p' works too.


Eric

From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf of shiva kumar <kannamshivakumar417@gmail.com>
Sent: Sunday, September 23, 2018 9:01:18 PM
To: django-users@googlegroups.com
Subject: 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