Skip to content

Instantly share code, notes, and snippets.

# This is where the magic for Yumalish.com and MePlayGameNow.com happens:
def index(request):
numresources = Resource.objects.count()
if request.method == 'POST':
form = SearchForm(request.POST)
if form.is_valid():
query = form.cleaned_data['query']
tags = parse_tags(query.lower())