python - Virtualenv, Django and PyCharm. File structure -


i newbie using virtualenv , try create 1 using pycharm. during process, pycharm ask me specify project location, application name , virtualenv name , location. doubt is, after specify name , location of virtualenv location of django project files must inside virtualenv? or it's possible have virtualenv files in different location django project files?

maybe not understanding purpose of virtualenv. perhaps, virtualenv it's list of dependencies of project, python version, django version, pip version, jinja2 version , other required files, not django application files (the website being developed).

thanks in advance.

ya, think misunderstand virtualenv does:

https://virtualenv.pypa.io/en/latest/

the basic problem being addressed 1 of dependencies , versions, , indirectly permissions. imagine have application needs version 1 of libfoo, application requires version 2. how can use both these applications? if install /usr/lib/python2.7/site-packages (or whatever platform’s standard location is), it’s easy end in situation unintentionally upgrade application shouldn’t upgraded.

your project files don't need (and shouldn't be) virtualenv files are.

virtualenv installs app's python dependancies in folder specific virtualenv being used.

let's not using virtualenv, dependencies installed into site-packages folder system. dependancies aren't installed in project directory , project directory isn't in system's site-packages directory.

using virtualenv doesn't change that, changes dependencies installed.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -