Skip to content

Instantly share code, notes, and snippets.

@robrocker7
Created January 22, 2013 17:48
Show Gist options
  • Save robrocker7/4596618 to your computer and use it in GitHub Desktop.
Save robrocker7/4596618 to your computer and use it in GitHub Desktop.
custom_keyword_list = ['wireless-home-security-systems', 'custom-keyword-twi']
if keyword in custom_keyword_list:
response = render_to_response('local-pages/%s.html' % keyword,
crime_stats_ctx, context_instance=RequestContext(request))
else:
response = render_to_response('local-pages/index.html',
crime_stats_ctx, context_instance=RequestContext(request))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment