from django.conf.urls import patterns, url from apps.quote.views import QuoteListView urlpatterns = patterns('', url(r'^', QuoteListView.as_view()), )
from django.conf.urls import patterns, url from apps.quote.views import QuoteListView, QuoteDetailView urlpatterns = patterns( "", url(r"^list_view/", QuoteListView.as_view()), url(r"^(?P<pk>\d+)/$", QuoteDetailView.as_view()) )