summaryrefslogtreecommitdiffstats
path: root/bn_django/photos/urls.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-19 00:28:16 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-19 00:28:16 -0800
commitacfaf3460905054249509f9459a235d99a24f028 (patch)
tree13f506085e6952420e19c68f1c8cdfcf04fa5bc9 /bn_django/photos/urls.py
parentde7fbaadb211650a73c68509f8b87cb93effdd2a (diff)
downloadbnewnet-acfaf3460905054249509f9459a235d99a24f028.tar.gz
bnewnet-acfaf3460905054249509f9459a235d99a24f028.zip
forgot to add several photo files
Diffstat (limited to 'bn_django/photos/urls.py')
-rw-r--r--bn_django/photos/urls.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/bn_django/photos/urls.py b/bn_django/photos/urls.py
new file mode 100644
index 0000000..a413c3f
--- /dev/null
+++ b/bn_django/photos/urls.py
@@ -0,0 +1,21 @@
+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.all(),
+ paginate_by= 10, allow_empty= True)),
+ (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/(\d+)/$', 'import_photos'),
+ (r'^export/(\d+)/$', 'export'),
+)