简体   繁体   English

如何将django-evolution目录添加到我的Python路径 - Ubuntu

[英]How to add the django-evolution dir to my Python Path - Ubuntu

I want to install Django-Evolution, but their documention is scarce on how to do it. 我想安装Django-Evolution,但他们的文档很少有关于如何做到这一点。 My main stumbling point (I am still learning stuff in Linux) is the following line: 我的主要绊脚石(我还在学习Linux中的东西)是以下几行:

Check out the Django Evolution sources, and put the checkout directory into your Python Path. 查看Django Evolution源代码,并将checkout目录放入Python Path。

How do I do that? 我怎么做? I guess I did it once before when I installed Django, but I was just following a blow by blow set of instructions then ( http://www.webmonkey.com/2010/02/install_django_and_build_your_first_app/ ). 我想在安装Django之前我曾经做过一次,但是我只是按照指令进行了一次打击( http://www.webmonkey.com/2010/02/install_django_and_build_your_first_app/ )。 Here is the entire quote from their FAQ file on Evolution: 以下是他们关于Evolution的FAQ文件的全部引用:

How do I install Django Evolution? 如何安装Django Evolution?

There have not been any official releases of Django Evolution. Django Evolution还没有任何正式版本。 If you want to use Django Evolution, you will need to use a subversion checkout. 如果你想使用Django Evolution,你需要使用subversion checkout。

Check out the Django Evolution sources, and put the checkout directory into your Python Path. 查看Django Evolution源代码,并将checkout目录放入Python Path。

Then add 'django_evolution' to the list of installed applications for the project in which you want to use Django Evolution. 然后将“django_evolution”添加到要在其中使用Django Evolution的项目的已安装应用程序列表中。

要将目录放在Python路径上,请将其添加到PYTHONPATH环境变量中,或者创建指向checkout目录的变量。

To add a directory to your PYTHONPATH you need to add this line into either ~/.profile , ~/.bashrc or ~/.bash_profile : 要将目录添加到PYTHONPATH,您需要将此行添加到~/.profile~/.bashrc~/.bash_profile

export PYTHONPATH=$PYTHONPATH:/path/to/Django/Evolution/directory

replacing /path/to/Django/Evolution/directory by the absolute path of the directory containing Django-Evolution 用包含Django-Evolution的目录的绝对路径替换/path/to/Django/Evolution/directory

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM