diff --git a/thoughts/feed.py b/thoughts/feed.py deleted file mode 100644 index dd07983..0000000 --- a/thoughts/feed.py +++ /dev/null @@ -1,24 +0,0 @@ -from django.contrib.syndication.views import Feed - -from thoughts.models import Thought - - -class MainFeed(Feed): - title = "Thoughts" - link = "/" - - @staticmethod - def items(): - return Thought.objects.all().order_by("-posted") - - def item_title(self, item): - return item.text - - def item_description(self, item): - return item.extended_text - - def item_link(self, item): - return "/?show=" + str(item.uuid) - - def item_pubdate(self, item): - return item.posted diff --git a/thoughts/templates/thoughts/index.html b/thoughts/templates/thoughts/index.html index e146aaa..91c0e66 100644 --- a/thoughts/templates/thoughts/index.html +++ b/thoughts/templates/thoughts/index.html @@ -11,7 +11,6 @@ {% endblock %} {% block head %} - {% if not first_page %} {% else %} diff --git a/whispermaphone/urls.py b/whispermaphone/urls.py index 515c843..3f96f67 100644 --- a/whispermaphone/urls.py +++ b/whispermaphone/urls.py @@ -2,7 +2,6 @@ from django.conf.urls.static import static from django.urls import path, include from thoughts import views -from thoughts.feed import MainFeed from whispermaphone import settings urlpatterns = [ @@ -10,6 +9,5 @@ urlpatterns = [ path("about", views.about, name="about"), path("login", views.login, name="login"), path("post", views.post, name="post"), - path("feed", MainFeed()), path("search", views.search, name="thoughts_search") ] + (static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG else [])