mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 09:05:41 +01:00
Updated requirements and other items in preps of new pinry version
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user