Good catch. That was a typo. Let me cut and paste directly:

urlpatterns = patterns("apps.popular_keywords.views",
                       url("^%skeyword/(?P<keyword>.*)%s$" % _slashes, 
"matching_items_list", name="matching_items")
)

Perhaps I should try some of your coffee.

Thanks.


On May 13, 2013, at 10:17 AM, Tom Evans <[email protected]> wrote:

> On Sun, May 12, 2013 at 9:08 AM,  <[email protected]> wrote:
>> I have an app within my project called popular_keywords.
>> 
>> Within urls.py I have this:
>> 
>> urlpatterns = patterns("apps.popular_keywords.views",
>>                       url("^%keyword/(?P<keyword>.*)%s$" % _slashes,
>> "matching_items_list", name="matching_items")
>> )
> 
> I hadn't had my coffee when I first saw this. This isn't a valid string 
> format:
> 
>  "^%keyword/(?P<keyword>.*)%s$"
> 
> Probably just missing a 's' from the first format specifier, eg '^%skeyword…'.
> 
> Does it work correctly if you fix the format string?
> 
> Cheers
> 
> Tom
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Django users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/django-users/y_G3Zirkn7s/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to