This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What's on Second | |
Itsamateursecco | |
The Ghost Tracks | |
Marni & The Greenbergs | |
I Can't Believe The Echo Nest Has a Softball Team | |
Family Game Night | |
The Sonos Whiplash | |
Echo Best | |
The Taste Profiles | |
reallyhit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from django import template | |
from django.utils.functional import allow_lazy | |
from django.template.defaultfilters import stringfilter | |
from django.utils.safestring import mark_safe, SafeData | |
from django.utils.encoding import force_unicode | |
from django.utils.html import escape | |
from django.utils.text import normalize_newlines | |
register = template.Library() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.sessions.backends.base import SessionBase, CreateError | |
from django.conf import settings | |
from django.utils.encoding import force_unicode | |
import redis | |
class SessionStore(SessionBase): | |
""" Redis store for sessions""" | |
def __init__(self, session_key=None): | |
self.redis = redis.Redis( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Haystack 1.0 or lower | |
*/15 * * * * cd /path/to/my/site/ && DJANGO_SETTINGS_MODULE=site.settings PYTHONPATH=.:..:../lib python ./manage.py reindex --age=1 > ../../log/search_indexes.log | |
# For Haystack 1.1 or higher | |
*/15 * * * * cd /path/to/my/site/ && DJANGO_SETTINGS_MODULE=site.settings PYTHONPATH=.:..:../lib python ./manage.py update_index --age=1 > ../../log/search_indexes.log |