Okay, thanks , I will do that On Tue 9 Apr, 2019, 7:52 PM PASCUAL Eric, <[email protected]> wrote:
> It seems right. > > I suppose that requirements.txt contains the rest_framework package too. > > You can check the image content by executing the "pip freeze" command on > it (docker run <image_name> pip freeze). This will tell you of all the > packages you nee are there. > > Eric > > ------------------------------ > *From:* [email protected] <[email protected]> on > behalf of Shubham Joshi <[email protected]> > *Sent:* Tuesday, April 9, 2019 10:54 > *To:* [email protected] > *Subject:* Re: Django REST in Docker > > > FROM python:3 > ENV PYTHONUNBUFFERED 1 > RUN mkdir /code > WORKDIR /code > COPY requirements.txt /code/ > RUN pip install -r requirements.txt > COPY . /code/ > > > On Tue, Apr 9, 2019 at 1:30 PM PASCUAL Eric <[email protected]> wrote: > > 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:* [email protected] <[email protected]> on > behalf of Shubham Joshi <[email protected]> > *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 [email protected]. > To post to this group, send email to [email protected]. > 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 [email protected]. > To post to this group, send email to [email protected]. > 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 > <https://groups.google.com/d/msgid/django-users/AM0P193MB030871AA27CDB1B3923B785E8C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > > -- > *Shubham Joshi* > Business Developer | Terse Software > M: 8390246938 > > E: [email protected] <[email protected]> > www.tersesoft.com > [image: linkedin] <https://www.linkedin.com/in/rajkumartiwari/> [image: > github] <https://github.com/rajqumar> > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/CAGJdmX63xQ1kS1z_i5MhkXS0hKkno1_fGnfx5344ShpY-aZv3Q%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAGJdmX63xQ1kS1z_i5MhkXS0hKkno1_fGnfx5344ShpY-aZv3Q%40mail.gmail.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 [email protected]. > To post to this group, send email to [email protected]. > 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/AM0P193MB03086659923CA5B0A3C832A98C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM > <https://groups.google.com/d/msgid/django-users/AM0P193MB03086659923CA5B0A3C832A98C2D0%40AM0P193MB0308.EURP193.PROD.OUTLOOK.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 [email protected]. To post to this group, send email to [email protected]. 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/CAGJdmX4k15coR4%2B%2BAtzstYmw0a5W_x9ts-7h%2BLtK%2BB%3Dz2YAG8g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

