简体   繁体   English

如何安装外部Pinax项目?

[英]How can i install external pinax projects?

I try to deal with poor documentation of Pinax. 我尝试处理Pinax的不良文档。

I found this project 我找到了这个项目

https://github.com/pinax/pinax-multiblog-project

what i want is that install it. 我想要的是安装它。 I normally install a project called account but here i have to install from git . 我通常会安装一个名为account的项目,但是在这里我必须从git安装。 How can i do that in Pinax 我如何在Pinax中做到这一点

Edit: 编辑:

It turns out the new way of using projects is to just copy the folder and rename it. 事实证明,使用项目的新方法是仅复制文件夹并重命名。

Usage instructions: 使用说明:

So to use the multiblog project you would do 因此,要使用多博客项目,您将

Copy the multiblog inside the cloned repo to a new location and rename it to the name you would like to use for your project. 将克隆的仓库中的多博客复制到新位置,并将其重命名为您要用于项目的名称。 Then install the requirements via pip and follow the rest of the steps for setting up a django project 然后通过pip安装要求,并按照其余步骤设置django项目

OSX/Linux: OSX / Linux:

cd ~/src
git clone https://github.com/pinax/pinax-multiblog-project
cp -r ~/src/pinax-project-admin ~/Sites/new_project
cd ~/Sites/new_project"
pip install -r requirements.txt
python manage.py syncdb

I too have been trying to accomplish the same thing. 我也一直在尝试完成同样的事情。 So far I found this commit https://github.com/nrb/pinax/blob/476d2398c48cc444eb2338c12090f0cebad46961/docs/starterprojects.txt 到目前为止,我发现了这个提交https://github.com/nrb/pinax/blob/476d2398c48cc444eb2338c12090f0cebad46961/docs/starterprojects.txt

Relevant section on begins on line 160 near the end 有关部分的内容从靠近终点的第160行开始

External Starter Projects
=========================

The Pinax ``setup_project`` command can also use starter projects built by third     parties. 
These can either be plain directory structures, or they may be a git/hg pip editable.

To install a starter project from an external source, simply pass the file path or git/hg 
URL to the ``-b`` option::

pinax-admin setup_project -b git+git://github.com/user/project.git#egg=project my_new_project

However all the pinax projects I have come across don't seem to include an egg to use 但是我遇到的所有pinax项目似乎都不包含要使用的鸡蛋

eg: 例如:

  1. https://github.com/pinax/pinax-multiblog-project https://github.com/pinax/pinax-multiblog-project
  2. https://github.com/pinax/pinax-project-account https://github.com/pinax/pinax-project-account

I need to use Django 1.4 for my project but the included account base project in both Pinax 0.9a2 and 0.9b1-dev10 use Django 1.3. 我需要为项目使用Django 1.4,但Pinax 0.9a2和0.9b1-dev10中包含的帐户基础项目都使用Django 1.3。

I am guessing the external project integration is something we will have to wait for in the Pinax 1.0 release. 我猜想外部项目集成是我们在Pinax 1.0版本中必须等待的东西。

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

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