From 67bf326c151d258661bb5e5c188cfc51053d3e4e Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 8 Jul 2012 14:34:36 -0400 Subject: [PATCH] Gahh --- views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/views.py b/views.py index 04acf3b..f30e94c 100644 --- a/views.py +++ b/views.py @@ -44,12 +44,10 @@ def amazon_image(request): try: open(img_loc) - return HttpResponseRedirect('/static/images/amazon/' + img_filename) + return HttpResponseRedirect('https://snipt.net/static/images/amazon/' + img_filename) except IOError: urllib.urlretrieve(img_src, img_loc) - return HttpResponseRedirect('/static/images/amazon/' + img_filename) - - return HttpResponseRedirect('/static/images/amazon/' + img_filename) + return HttpResponseRedirect('https://snipt.net/static/images/amazon/' + img_filename) else: return HttpResponseBadRequest() return {}