Monday, August 31, 2015

load drf from different location


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.

No comments:

Post a Comment