Run Pinax without VirtualEnv

Is there a way to run Pinax without virtualenv?

I want to run it without virtualenv, because I want to run it on a django container on the grid-hosting mediatemples service. Their containers can scale up to 1 GB of dedicated memory, so I don’t have to worry about my problems with VPS or scaling. But their answer was:

"because of how DjangoContainer works, you won’t be able to configure the server to use your virtual server. In fact, DjangoContainer is a virtualized server (which you do not have access to except the AccountCenter tools, or the mtd command-line tool) with the specific purpose of serving your Django applications. It mounts your django container folder in order to have the application code, but you cannot change the version or location of the python it uses, which probably means you have to use Pinax without virtualenv support, since the general idea Use virtualenv so will be to create a customized environment for your Pinax application that, as I mentioned here, can not instruct the server to use. "

+3
source share
3 answers

Starting from 0.9a1, Pinax can be used without pinax-boot.py, which was a virtualized dependency (we linked it). Requirements are a project level and should be installed using pip. Nevertheless, it setup_projectensures the forced use of the virtual environment when setting requirements (for you it is more convenient to call, I would be open so as not to use the virtual environment here). You can pass --no-reqsin setup_projectso that it skips the installation of dependencies. Then you can run pip yourself and install it as you like.

+4
source

, , , . Pinax virtualenv , .

-1

you can, all you have to do is figure out what is in virtualenv. configure it and install yolk in virtual env and type yolk -l to find out what you need to install in order to make it work.

-1
source

Source: https://habr.com/ru/post/1758576/


All Articles