mirror of
https://github.com/jazzband/django-categories.git
synced 2026-05-03 21:24:46 +00:00
16 lines
No EOL
443 B
Python
16 lines
No EOL
443 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'
|
|
),
|
|
)
|
|
|
|
urlpatterns += patterns('categories.views',
|
|
url(r'^(?P<path>.+)$', 'category_detail', {'with_stories': True}, name='categories_category'),
|
|
) |