Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Heroku - Django raise TemplateDoesNotExist(name) exception, but template is not needed in requested action
- def generate(request, page_id):
- page = get_object_or_404(Page, pk=page_id)
- response = HttpResponse(page.content)
- response['Content-Type'] = 'text/plain'
- return response
- GET test.herokuapp.com/generate/1 dyno=web.1 queue=0 wait=0ms service=908ms status=500 bytes=59
- 2012-07-29T19:20:06+00:00 app[web.1]: raise TemplateDoesNotExist(name)
- 2012-07-29T19:20:06+00:00 app[web.1]: TemplateDoesNotExist: 500.html
- return render_to_response('front/home.html')
Advertisement
Add Comment
Please, Sign In to add comment