aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bn_django/photos/models.py4
-rw-r--r--bn_django/photos/views.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/bn_django/photos/models.py b/bn_django/photos/models.py
index d6f9261..8ca4f13 100644
--- a/bn_django/photos/models.py
+++ b/bn_django/photos/models.py
@@ -292,6 +292,6 @@ signals.pre_delete.connect(delete_thumbnails, sender=Photo)
from django.contrib import admin
-#admin.site.register(Photo)
-#admin.site.register(Gallery)
+admin.site.register(Photo)
+admin.site.register(Gallery)
diff --git a/bn_django/photos/views.py b/bn_django/photos/views.py
index 993c116..a6459f6 100644
--- a/bn_django/photos/views.py
+++ b/bn_django/photos/views.py
@@ -117,7 +117,7 @@ def import_photos(request, thegallery):
if tags.has_key('Image DateTime'):
exifdate = tags['Image DateTime'].printable
photo.date = apply(datetime, map(int, exifdate.split(' ')[0].split(':')))
- except Exception as E:
+ except Exception, E:
print E
pass
try:
@@ -126,7 +126,7 @@ def import_photos(request, thegallery):
if not exiftitle == []:
photo.title = exiftitle
- except Exception as E:
+ except Exception, E:
print E
pass
try:
@@ -135,10 +135,10 @@ def import_photos(request, thegallery):
if exifrot == 'Rotated 90 CCW':
#DO ROTATION
pass
- except Exception as E:
+ except Exception, E:
print E
pass
- except Exception as E:
+ except Exception, E:
print E
pass
finally: