aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/photos/urls.py')
-rw-r--r--bn_django/photos/urls.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/bn_django/photos/urls.py b/bn_django/photos/urls.py
deleted file mode 100644
index 233ccc4..0000000
--- a/bn_django/photos/urls.py
+++ /dev/null
@@ -1,23 +0,0 @@
-from django.conf.urls.defaults import *
-from django.conf import settings
-
-from models import Gallery, Photo, ADMIN_URL, STOCKPHOTO_URL
-
-info_dict = { 'extra_context': { 'admin_url': ADMIN_URL,
- 'stockphoto_url': STOCKPHOTO_URL} }
-
-urlpatterns = patterns('django.views.generic.list_detail',
- (r'^$', 'object_list',
- dict(info_dict, queryset=Gallery.objects.order_by('-date'),
- paginate_by=35, allow_empty= True)),
- (r'^(?P<slug>[\d\w-]+)/$', 'object_detail',
- dict(info_dict, queryset=Gallery.objects.all(), slug_field='slug')),
- (r'^(?P<object_id>\d+)/$', 'object_detail',
- dict(info_dict, queryset=Gallery.objects.all())),
- (r'^detail/(?P<object_id>\d+)/$', 'object_detail',
- dict(info_dict, queryset=Photo.objects.all())),
-)
-urlpatterns += patterns('bn_django.photos.views',
- (r'^import/(?P<thegallery>\d+)/$', 'import_photos'),
- #(r'^export/(\d+)/$', 'export'),
-)