Actually, there is a character class \D; it matches any NON-digit. As such
this should match title, as long as it contains non digits.
But looking at this line from the error message:
8. ^plugin/ ^(?P\d+)/$ [name='detail']
It appears that you are actually using the little \d, contrary to the
On Mon, Oct 14, 2013 at 11:58 PM, Mark Strickland
wrote:
>
> I am new to using Django and I can get one urls to work, but I cannot get
> another. I am running Django 1.5
>
> This url works.
>
> url(r'^$', views.index, name='index'),
>
>
> But if I try to follow this one.
>
> url(r'^(?P\D+)/$',
On 2013-10-14, at 3:58 PM, Mark Strickland wrote:
> I am new to using Django and I can get one urls to work, but I cannot get
> another. I am running Django 1.5
>
> This url works.
>
> url(r'^$', views.index, name='index'),
>
> But if I try to follow this one.
>
> url(r'^(?P\D+)/$', views
I am new to using Django and I can get one urls to work, but I cannot get
another. I am running Django 1.5
This url works.
url(r'^$', views.index, name='index'),
But if I try to follow this one.
url(r'^(?P\D+)/$', views.detail, name='detail'),
I get the following error.when I try http://1
4 matches
Mail list logo