Remove debug code and add README note
This commit is contained in:
parent
bd3094e221
commit
c49b7c47c4
1
README
1
README
|
@ -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>
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue