Re: path('posts/(?P[0-9]+)/$'

2018-12-03 Thread ehrenfeld1946
They both worked. Thank you! On Sunday, December 2, 2018 at 6:04:04 PM UTC-8, Lachlan Musicman wrote: > > > > On Mon, 3 Dec 2018 at 11:51, > wrote: > >> >> >> On Sunday, December 2, 2018 at 10:00:17 AM UTC-8, Jani Tiainen wrote: >>> >>> Hi. >>> >>> Path is a new url format which uses format o

Re: path('posts/(?P[0-9]+)/$'

2018-12-02 Thread ehrenfeld1946
I am new to django so I am not sure I understand what you are saying. Can you give me a rewrite of the correct syntax of the line that is not correct? Thank you On Sunday, December 2, 2018 at 10:00:17 AM UTC-8, Jani Tiainen wrote: > > Hi. > > Path is a new url format which uses format of for >

path('posts/(?P[0-9]+)/$'

2018-12-02 Thread ehrenfeld1946
When I run http://localhost:8000/posts/2 I get the error: Using the URLconf defined in blog.urls, Django tried these URL patterns, in this order: 1. admin/ 2. 3. Posts/(?P[0-9]+)/$ 4. ^media/(?P.*)$ The current path, posts/2, didn't match any of these. Here