Django:HTTPレスポンスでファイルを返す
実装例
from django.http import FileResponse
from django.views.generic.base import View
class …from django.http import FileResponse
from django.views.generic.base import View
class …handlerHTTPステータスコード = 'エラー画面出力用関数'
handler404 = …my_field = MyChoiceField(
...
choices=[
(optionのvalue, optionのinnerText), …from django.urls import reverse
reverse('namaspace:name', args=(引数1, 引数2, ...))
# …from django.views import View
from django.views.decorators.csrf import …