mirror of
https://github.com/taroved/pol
synced 2025-05-17 06:40:08 -07:00
feed url
This commit is contained in:
parent
aa5c6e294a
commit
d03cbe3478
@ -169,8 +169,7 @@ PIPELINE_JS = {
|
||||
|
||||
DOWNLOADER_PAGE_URL = '/downloader?url='
|
||||
|
||||
# replace 127.0.0.1 with your VPS server IP or domain.name
|
||||
FEED_PAGE_URL = '//127.0.0.1/feed/'
|
||||
FEED_PAGE_URL = '/feed/'
|
||||
|
||||
DOWNLOADER_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36'
|
||||
# limit of seconds in which user can access separate feed
|
||||
|
@ -18,7 +18,9 @@
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading">{% trans 'subscribe.your_feed' %}:</h4>
|
||||
<h3>
|
||||
<a href="{{ feed_url }}" target="_blank">{{ feed_url }}</a>
|
||||
<a href="{{ feed_url }}" target="_blank"><script type="text/javascript">
|
||||
document.write(location.protocol + '//' + location.hostname);
|
||||
</script>{{ feed_url }}</a>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
@ -204,7 +204,7 @@ def preview(request, feed_id):
|
||||
if request.method == 'GET':
|
||||
return render(request, 'frontend/preview.html',
|
||||
{
|
||||
'feed_url': request.build_absolute_uri(FEED_PAGE_URL + feed_id)
|
||||
'feed_url': FEED_PAGE_URL + feed_id
|
||||
})
|
||||
|
||||
return HttpResponseBadRequest('Only GET method supported')
|
Loading…
x
Reference in New Issue
Block a user