Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.58 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Heroku - Django raise TemplateDoesNotExist(name) exception, but template is not needed in requested action
  2. def generate(request, page_id):
  3.     page = get_object_or_404(Page, pk=page_id)
  4.  
  5.     response = HttpResponse(page.content)
  6.     response['Content-Type'] = 'text/plain'
  7.  
  8.     return response
  9.        
  10. GET test.herokuapp.com/generate/1 dyno=web.1 queue=0 wait=0ms service=908ms status=500 bytes=59
  11. 2012-07-29T19:20:06+00:00 app[web.1]:     raise TemplateDoesNotExist(name)
  12. 2012-07-29T19:20:06+00:00 app[web.1]: TemplateDoesNotExist: 500.html
  13.        
  14. return render_to_response('front/home.html')