From 58e402a077c710c04934e3a7ddc25883427d1f64 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 8 May 2014 19:44:58 -0400 Subject: added birding app, fixed a few python-related bugs throughout the code base. --- app/blog/admin.py | 2 +- app/blog/widgets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/blog') 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'%s' % (absolute_url, image_path) class AdminImageWidget(AdminFileWidget): -- cgit v1.2.3