use \w+ to capture characters and digits. Also general django practice is 
to end all urls with a slash so:

url(r'^myapp/(?P<myarg>\w+)/$', views.my_view)

On Thursday, May 12, 2016 at 4:32:20 AM UTC-5, quentin ladrier wrote:
>
> so I have test with an S+ or *  and finally I obtain same error message.
>
> this my first django project
>
> regards
>
> quentin
>
> Le jeudi 12 mai 2016 11:27:21 UTC+2, Tom Evans a écrit :
>>
>> On Wed, May 11, 2016 at 3:28 PM, quentin ladrier <kent17...@gmail.com> 
>> wrote: 
>> > sorry for the delay . I obtain this kind of error message: 
>> > NoReverseMatch at /my_views/my_arg/ . Reverse for 'xxx' with arguments 
>> > '(my_arg,)' and keyword arguments '{}' not found. 1 pattern(s) tried: 
>> > ['my_views/(?P<my_arg>\d+)$'] 
>>
>> \d+ means 1 or more digits (0-9). 'my_arg' doesn't match that. Either 
>> pass a number, or change the regular expression to match the content 
>> of the argument you wish to pass. 
>>
>> Cheers 
>>
>> Tom 
>>
>

-- 
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+unsubscr...@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/80a20500-bf21-4b75-8bfe-64d8d0872ef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to