Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 18702

type error in api profile in django rest framework

$
0
0

typeError at /api/profile/init() got an unexpected keyword argument 'write only'Request Method: GETRequest URL: http://127.0.0.1:8000/api/profile/Django Version: 3.2.25Exception Type: TypeErrorException Value:
init() got an unexpected keyword argument 'write only'Exception Location: /home/vagrant/env/lib/python3.6/site-packages/rest_framework/fields.py, line 738, in initPython Executable: /home/vagrant/env/bin/python3Python Version: 3.6.9Python Path:
['/vagrant','/usr/lib/python36.zip','/usr/lib/python3.6','/usr/lib/python3.6/lib-dynload','/home/vagrant/env/lib/python3.6/site-packages'

everything in the code was correct, can't able to access the api/profile page in django server.


Viewing all articles
Browse latest Browse all 18702

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>