On Saturday, 14 February 2015 04:28:40 UTC, inoyon artlover KLANGRAUSCH 
wrote:
>
>
> urlpatterns = patterns('',
>     url(r'^admin/', include(admin.site.urls)),
>     url(r'^(?P<slug>)$',List.as_view()),
> )
>

That regex will never match anything. You need to give it some character 
classes to match:

     url(r'^(?P<slug>[\w-]+)$',List.as_view()),

which will match any alphanumeric characters or a hyphen, which are the 
usual components of a slug.
--
DR.

-- 
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/38e359f6-9aae-4398-8799-29293313323c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to