mod_wsgi と Apache を使用して、Django で構築されたアプリケーションを Ubuntu 10 サーバーにデプロイしようとしています。特定のビューにアクセスしようとすると、サーバーからコンテンツのない 200 応答が返されます。これらは、機能するビューと機能しないビューです。
def this_works(request):
return render_to_response('admin/index.html')
def this_also_works(request):
return HttpResponse(loader.render_to_string('admin/index.html'))
def this_doesnt_work(request):
return SimpleTemplateResponse(Template('Example text'))
これに加えて、管理サイトとログイン ビューも機能しません。このアプリケーションは、Django の runserver と完全に連携します。
助けていただければ幸いです。