2

我正在将 0.5.1 complete_project 更新为 0.7beta3 + virtualenv + pip + fabric。

我已经将我的项目转换为多个独立的应用程序,并且我已经通过 pip 从 requirements.txt 文件中提取了所有内容。

我现在正在移动代码,到目前为止可以访问欢迎页面并执行登录,但随后由于引入了组支持和将部落重构为部落和主题,它似乎中断了。

有没有人成功完成这个动作?如果你这样做了,你是如何处理数据迁移的?我应该注意什么?有人有清单或步骤清单吗?我还有哪些激动人心的挑战值得期待?

4

1 回答 1

1

The short answer as far as I'm aware (and I've been following Pinax development for some time now) is that there is no straightforward path to upgrade the project from 0.5.1 to 0.7beta3. I'm not sure how familiar you are with the code, but this is the process I would use based on my limited experience:

Start by using the social_project/ that ships with the latest version of Pinax. Copy into it any changes you made to the settings.py file as well as any custom apps you have.

The templates and media have moved to folders outside of the projects, but if you customized any of them (I'm sure you did) take the custom ones and drop them into the template folders in your project to override those in the default theme folders. You should compare them to those in the theme folders to see what changes may need to be made to keep up with changes in the apps.

The next step would be to do the same thing with urls.py copying any customizations over the one provided by the project.

Try getting it running at this point with a fresh DB. Hopefully any errors will point you in the right direction to stuff that you might have missed or not known about.

Once you gotten it running most of the DB tables should be the same (I believe) except as you mentioned the Tribes stuff. Migrating the data, though, is still beyond what I've had to deal with.

Disclaimer: I've been following development but never had to perform an upgrade quite this big. Good luck and (obviously) back up your work and data before trying to port it all over.

See the documentation and code ( http://github.com/pinax/pinax/tree/master ) for more details. The code is a convenient (though tedious) way to watch the evolution between 0.5.1 and 0.7beta3, for what that's worth.

于 2009-08-07T01:36:40.067 回答