@ensure_csrf_cookie
@cache_if_anonymous()
def render_press_release(request, slug):
 template = (slug.lower().replace('-', '_') + '.html')
 try:
  resp = render_to_response(('static_templates/press_releases/' + template), {})
 except TopLevelLookupException:
  raise Http404
 else:
  return resp

@ ensure_csrf_cookie @ cache_if_anonymous ( ) def render_press_release ( request , slug ) : template = ( slug . lower ( ) . replace ( '-' , '_' ) + '.html' ) try : resp = render_to_response ( ( 'static_templates/press_releases/' + template ) , { } ) except TopLevelLookupException : raise Http404 else : return resp
render a press release given a slug .