Hi,

Working in contenerized context does not change anything from other modes.

You just need to include the appropriate pip install command in the Dockerfile, 
so that all the dependencies are installed in the image. They will then 
available to your app the same way they are on you dev machine.

Could you show the content of your Dockerfile to check if there would not be 
some other problem ?

Eric

________________________________
From: django-users@googlegroups.com <django-users@googlegroups.com> on behalf 
of Shubham Joshi <shub...@tersesoft.com>
Sent: Tuesday, April 9, 2019 07:30
To: Django users
Subject: Django REST in Docker

I had set up django in Docker, now I am trying to install pip packages , like 
rest_framework and added in installed apps too.
but it throws ModuleNotFoundError: No module named 'rest_framework' , whats the 
generic way of installing the pip packages in existing dockerized django project

--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/656cff9e-50f9-4d5a-bafc-05eaa99778d7%40googlegroups.com<https://groups.google.com/d/msgid/django-users/656cff9e-50f9-4d5a-bafc-05eaa99778d7%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AM0P193MB030871AA27CDB1B3923B785E8C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to