EXAMPLE QUESTION | Setting up Python Packages Path for Django Application

in steemdevqna •  8 years ago 

I'm currently hosting with a dreamhost shared VPS, and I do not have sudo rights. I want to install django packages, but I cannot to usr/local/lib/python2.7/dist-packages/ because python is root access only. I have setup a directory in my user directory also called dist-packages to which I have copied all my packages to. I want to use the packages in the dist-packages directory I created to build my django app.

Python 2.7 Django 1.9

My current setup

/home/myuser/mydomain.com/
   env/
   myApp/
   passenger_wsgi.py
   public/

How do I setup the env?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

You can use virtualenv in the terminal to create an isolated python directory of your choice and install everything in there.

This post received a 1.6% upvote from @randowhale thanks to @finkavenue! For more information, click here!

This post received a 3.9% upvote from @randowhale thanks to @finkavenue! For more information, click here!

This post has received a 9.35 % upvote from @booster thanks to: @finkavenue.