Updated requirements and other items in preps of new pinry version

This commit is contained in:
Isaac Bythewood
2013-09-22 03:33:50 +00:00
parent 70a797c5af
commit a4f3adc2df
7 changed files with 24 additions and 15 deletions

View File

@@ -31,10 +31,13 @@ class LatestPins(Feed):
Doing this as a fix for Django's not including the domain name in
enclosure urls.
"""
request_type = 'http'
if request.is_secure(): request_type = 'https'
self.domain_name = ''.join([request_type, '://',
get_current_site(request).domain])
try:
request_type = 'http'
if request.is_secure(): request_type = 'https'
self.domain_name = ''.join([request_type, '://',
get_current_site(request).domain])
except:
pass
def items(self):
return Pin.objects.order_by('-published')[:15]