On Tue, Aug 19, 2014 at 8:14 AM, Philipp <webmas...@radio.ch> wrote:
> [...]
>
> This is my urls.py file:
>
> urlpatterns = patterns('',
>     url(r'^(?P<slug>[\w\-]+)?', ArticleView.as_view(),
> name='article-by-slug'),
> )
>
> [...]
>>>> reverse('article_app:article-by-slug', kwargs={'slug': a.slug})

Try with::

    reverse('article_app:article-by-slug', args=[a.slug])

> # Reverse for 'article_app:article-by-slug' with arguments '()' and keyword
> arguments '{'slug': 'this-is-article-1'}' not found.

Regards,

-- 
Ramiro Morales
@ramiromorales

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO7PdF-UrHAgOOFC2iS3NZbyXUs99%2B9xC7MrnXDUDaMFBkLT2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to