mirror of
https://github.com/jazzband/django-categories.git
synced 2026-04-25 09:14:49 +00:00
19 lines
No EOL
558 B
Python
19 lines
No EOL
558 B
Python
from django.conf.urls.defaults import *
|
|
from categories.models import Category
|
|
|
|
categorytree_dict = {
|
|
'queryset': Category.objects.all()
|
|
}
|
|
|
|
urlpatterns = patterns('django.views.generic.list_detail',
|
|
url(
|
|
r'^$', 'object_list', categorytree_dict, name='categories_tree_list'
|
|
),
|
|
#url(
|
|
# r'^(?P<slug>[\w-]+)/$', 'object_detail', categorytree_dict, name='categories_tree'
|
|
#),
|
|
)
|
|
|
|
urlpatterns += patterns('categories.views',
|
|
url(r'^(?P<slug>[\w-]+)/$', 'category_detail', {'with_stories': True}, name='categories_category'),
|
|
) |