diff options
author | luxagraf <sng@luxagraf.net> | 2014-05-08 19:44:58 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2014-05-08 19:44:58 -0400 |
commit | 58e402a077c710c04934e3a7ddc25883427d1f64 (patch) | |
tree | 485506e3c1805a793f2d5920751f53c400b08aac /app/blog | |
parent | 5f430f31474847ac50fa017dc1397c3bde2d140d (diff) |
added birding app, fixed a few python-related bugs throughout the code base.
Diffstat (limited to 'app/blog')
-rw-r--r-- | app/blog/admin.py | 2 | ||||
-rw-r--r-- | app/blog/widgets.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/blog/admin.py b/app/blog/admin.py index c0d72d9..d756b18 100644 --- a/app/blog/admin.py +++ b/app/blog/admin.py @@ -4,7 +4,7 @@ from blog.models import Entry, PostImage, EntryAside from blog.widgets import AdminImageWidget from django.contrib.gis.admin import OSMGeoAdmin from django.conf import settings -from models import * +from .models import * diff --git a/app/blog/widgets.py b/app/blog/widgets.py index e7d9da8..33b2d9a 100644 --- a/app/blog/widgets.py +++ b/app/blog/widgets.py @@ -7,7 +7,7 @@ import os def thumbnail(image_path): absolute_url = os.path.join(settings.IMAGES_URL, image_path[7:]) - print absolute_url + print(absolute_url) return u'<img style="max-width: 400px" src="%s" alt="%s" />' % (absolute_url, image_path) class AdminImageWidget(AdminFileWidget): |