From 9a04615836147df7b0136f23a7f3d444e7c5a21c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 22 Aug 2009 16:29:36 -0700 Subject: not ready for prime time --- bn_django/templates/base.html | 2 +- bn_django/templates/frontpage.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bn_django/templates/base.html b/bn_django/templates/base.html index 8fb9564..0459655 100644 --- a/bn_django/templates/base.html +++ b/bn_django/templates/base.html @@ -29,7 +29,7 @@
- journal  + {% comment %}journal {% endcomment %} photos  code  knowledge diff --git a/bn_django/templates/frontpage.html b/bn_django/templates/frontpage.html index cea5534..17250f4 100644 --- a/bn_django/templates/frontpage.html +++ b/bn_django/templates/frontpage.html @@ -14,7 +14,7 @@ {% block right_stuff %}
RSS feeds:
-   - journal entries
+{% comment %}   - journal entries
{% endcomment %}   - journal microentries
  - links


-- cgit v1.2.3 From 197c0c4496a269ee2063fb6c33afbe2e939d5a52 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 4 Oct 2009 17:55:51 -0700 Subject: tweaks to get galleries going --- bn_django/photos/models.py | 4 ++-- bn_django/photos/views.py | 8 ++++---- 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: -- cgit v1.2.3