DjangoのDRFで「AssertionError: Cannot set both ‘fields’ and ‘exclude’ options on serializer 〇〇」

今回はDjangoのDRFで「AssertionError: Cannot set both ‘fields’ and ‘exclude’ options on serializer 〇 ...
DjangoのSerialierでfieldsを_all_指定するのではなく、exceptを使って取り除きたいとき

今回はDjango Rest Frameworkにおいてserializerを使うときにfieldsを_all_指定するのではなく、fieldの一部を取り除きたいときどのようにすれば良いのかについてご紹介いたします。
Djang ...Djangoのrest_framework.request.Requestでパスパラメータを取得したいとき

今回はDjangoのrest_framework.request.Requestでパスパラメータを取得したいときどのようにすれば良いのかについてご紹介いたします。
Djangoのrest_framework.request.Re ...DRFでurlのpkで型を指定しないとき、末尾にあるとint、urlの途中にあるとstringになる【メモ書き】

自分のメモ書き用です。
DjangoのDRFでpkを入れて型を指定しないときに、pkが末尾にあるとint、urlの途中にあるとstringになります。
Djangoのバージョンは2.2.24です。
DRF ...DjangoのDRFのResponseにerrorsというkeyは使えない

今回はDjangoのDRFのResponseにerrorsというkeyは使えないというお話をしていきます。
DjangoのDRFのResponseにerrorsというkeyは使えないDjango REST Framewor ...
Djangoで「In order to allow non-dict objects to be serialized set the safe parameter to False.」

今回はDjangoで「In order to allow non-dict objects to be serialized set the safe parameter to False.」というエラーが起きた場合の対処法についてご ...
django-rest-authでパスワードの変更のメールが飛ばない事象

今回はDjango REST frameworkを使用しているときに、django-rest-authでパスワードの変更のメールが飛ばない事象が起きるのはなぜなのかについてご紹介いたします。
django-rest-authでパ ...Django DRFで「TypeError: The `fields` option must be a list or tuple or “__all__”. Got str.」

今回はDjango REST frameworkで「TypeError: The fields option must be a list or tuple or “__all__”. Got str.」という ...
Django DRFでブラウザにアクセスしたときのGUIのコンソールを非表示にする方法

今回はDjango REST frameworkでブラウザにアクセスしたときのGUIのコンソールを非表示にする方法についてご紹介いたします。
Django DRFでブラウザにアクセスしたときのGUIのコンソールを非表示にする方法 ...ModelViewSetやGenericViewSetのcreateなどの関数を継承したいとき

今回はDjango REST frameworkのModelViewSetやGenericViewSetでcreateなどの関数を継承して他の処理を加えたい場合どのようにすれば良いのかについてご紹介いたします。
ModelVie ...Django REST frameworkで404エラーを返すにはexceptionsモジュールが便利

今回はDjango REST frameworkで404エラーを返すにはexceptionsモジュールが便利ということについてお話ししていきたいと思います。
Django REST frameworkで404エラーを返すにはex ...