publish plan fix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 29 Dec 2011 09:41:09 +0000 (10:41 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 29 Dec 2011 09:41:09 +0000 (10:41 +0100)
wolnelektury/settings.py
wolnelektury/views.py

index 18e8d75..a248059 100644 (file)
@@ -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
 
index 3fa4337..f2d9abd 100755 (executable)
@@ -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: