From 6e5535d4d36c0cfd763fb16538ac054d01097fe2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 29 Dec 2011 10:41:09 +0100 Subject: [PATCH 1/1] publish plan fix --- wolnelektury/settings.py | 1 + wolnelektury/views.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 18e8d7573..a248059dc 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -257,6 +257,7 @@ ALL_PDF_ZIP = 'wolnelektury_pl_pdf' ALL_MOBI_ZIP = 'wolnelektury_pl_mobi' CATALOGUE_DEFAULT_LANGUAGE = 'pol' +PUBLISH_PLAN_FEED = 'http://redakcja.wolnelektury.pl/documents/track/editor-proofreading/' PAGINATION_INVALID_PAGE_RAISES_404 = True diff --git a/wolnelektury/views.py b/wolnelektury/views.py index 3fa4337af..f2d9abd70 100755 --- a/wolnelektury/views.py +++ b/wolnelektury/views.py @@ -11,6 +11,7 @@ from django.utils.http import urlquote_plus from django.utils.translation import ugettext_lazy as _ from django.views.decorators.cache import never_cache +from django.conf import settings from ajaxable.utils import AjaxableFormView from catalogue.models import Book @@ -77,7 +78,7 @@ def publish_plan(request): if plan is None: plan = [] try: - feed = feedparser.parse('http://localhost:8000/documents/track/editor-proofreading/') + feed = feedparser.parse(settings.PUBLISH_PLAN_FEED) except: pass else: -- 2.20.1