What you probably want is a Python virtualenv, or venv for Python3.
https://virtualenv.pypa.io/en/latest/
https://docs.python.org/3/library/venv.html
There are a ton of virtualenv tutorials out there for pretty much
every platform.
-James
On Mon, Aug 31, 2015 at 8:18 AM, Prabath Peiris
<prabath@peirisclothing.com> wrote:
>
> Hi
>
> This is the problem I am trying to solve. I have a VM which has all the
> django + other required packages are installed (including the
> rest_framework). I usually ssh to the VM and then run the following command
>
> PYTHONPATH=/all/the/paths runserver 127.0.0.1:8000
>
> Now I want to mount the rest_framework to my local machine and and put some
> debug code to understand how to framework is working. what I like to do is
> this, I installed the rest_framework module in to my local directory (in VM)
> and I would like to load the rest_framework from the local install instead
> from the systemwide install ( I do not want to edit the systemwide install).
>
> How can I tell the django or pythonpath to load only rest_framework from
> somewhere else.
>
> Thank You
> Prabath
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f9b2b2f8-bc67-4e4d-a634-c4850abf840e%40googlegroups.com.
> 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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUDv0qWq%3Dkt%3DsFP%3DLEtWhPZU-fKzdv_O8O3d4PYujtRKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment