简体   繁体   English

我可以在同一个virtualenv文件夹中有多个django项目吗

[英]Can I have multiple django projects in the same virtualenv folder

Another newbie to django here. django的另一个新手在这里。 I was wondering if it is recommended/not-recommended to run two different projects in the same virtualenv folder that have the same django version. 我想知道是否建议/不建议在具有相同Django版本的同一virtualenv文件夹中运行两个不同的项目。 To be more clear, is it necessary to create separate virtualenv everytime I want to start a new project when i know that i am using same django version for all projects. 更清楚地说,当我知道我为所有项目使用相同的Django版本时,是否每次我要启动新项目时都必须创建单独的virtualenv。 I am using python django on OSX. 我在OSX上使用python django。

It really depends on the situation. 这真的取决于情况。 Suppose if your Project A need to use Pip version 17.01 to run while your project B need to use Pip version 18.01 to run. 假设您的项目A需要使用Pip版本17.01来运行,而项目B需要使用Pip版本18.01来运行。 So It is not possible to use 1 virtual env to run multiple project but the downside of having multiple virtual environments is it consume much space & resource of PC. 因此,不可能使用1个虚拟环境来运行多个项目,但是拥有多个虚拟环境的不利之处在于它会占用PC的大量空间和资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 以相同的IP(Apache)在不同的virtualenv中服务多个Django项目 - Serving multiple Django projects in different virtualenv at the same IP (Apache) 如何在相同的Django项目中同时使用简单缩略图和sorl-thumbnail,但它们具有相同的模板标签? - How can i use both easy thumbnails and sorl-thumbnail in the same django projects yet they have the same template tags? 我可以为不同的 Django 项目使用相同的 conda 环境吗? - Can I use the same conda environment for different Django projects? 我可以创建一个超级用户并在多个 Django 项目中使用它吗? - Can I create one Superuser and use it in multiple Django Projects? 如何在我的 Django 项目之外拥有一个模板文件夹 - How can I have a template folder outside my Django project 我可以为 Django 自定义命令创建一个文件夹而不是文件吗? - Can I have a folder instead file for a Django custom command? 两个 Django 项目可以共享同一个数据库吗? - Can two Django projects share the same database? Django:我可以同时将“ action =”和jQuery分配给同一表格吗? - Django: can I have both “action=” and jQuery assigned to the same form? 我可以在同一个项目中拥有 Django url 和 Vue 路由吗? - Can i have Django urls and Vue routes in the same project? Django startproject不在virtualenv中创建文件夹 - Django startproject doesn't create folder in virtualenv
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM