Remove debug code and add README note

This commit is contained in:
Matthias Portzel 2022-01-02 11:23:24 -08:00
parent bd3094e221
commit c49b7c47c4
3 changed files with 1 additions and 7 deletions

1
README
View File

@ -18,6 +18,7 @@ python -m venv venv
pip install -r requirements.txt
# To install xapian to power /search:
# NOTE: make sure the virtual enviroment is enabled before running this
# Check the latest version of xapian from https://github.com/xapian/xapian/tags
. install_xapain <version>

View File

@ -83,8 +83,6 @@ def season_pages():
last_season, last_year = season_year_for_date(last_thought.posted)
while current_year < last_year or current_season != last_season:
print(current_season, current_year)
yield SeasonPage(current_season, current_year)
if current_season == 0:

View File

@ -1,14 +1,9 @@
from haystack import indexes
from .models import Thought
# print("Hello")
class ThoughtIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True, template_name="search/indexes/main/thought_text.txt")
# author = indexes.CharField(model_attr='user')
# pub_date = indexes.DateTimeField(model_attr='pub_date')
def get_model(self):
return Thought