Django Rest Framework — no module named rest_framework

后端 未结 21 1071
夕颜
夕颜 2021-02-01 00:23

I\'ve installed django rest framework using pip install djangorestframework yet I still get this error when I run \"python3 manage.py sycndb\":

21条回答
  •  無奈伤痛
    2021-02-01 01:00

    (I would assume that folks using containers know what they're doing, but here's my two cents)

    Let's say you setup your project using cookiecutter-django and enabled the docker container support, be sure to update the pip requirements file with djangorestframework== (or whichever python dependency you're trying to install) and re-build the docker images (local and production).

提交回复
热议问题