当前位置: 动力学知识库 > 问答 > 编程问答 >

Which is the besy way to update a Django project from 1.25 to 1.4

问题描述:

I don't know what I was thinking and I don't have any kind of tests on this project. I want to upgrade it to 1.4 to be able to add to it all kind of different tests and have a more rigid project. What tips or recommendations can you guys give me?

Thanks.

网友答案:

I would recommend you to read through the release notes for each release to try to identify any areas that have changed that might break your existing code. Find them here https://docs.djangoproject.com/en/dev/releases/

Since you don't have any tests for your project you just have to roll up your sleeves and run full site tests where you run your app and try to test as many features you can to see if it is working as epxected.

I have just done the 1.1.1 to 1.4 upgrade (but I had some tests to help me) and it was not that bad.

There are 2 aspects of the upgrade. One is just to get your app to run on the new version and one is to change/update your code to utilize the new features in the 1.4 release. I would recommend that you first get it to work properly, release it and then refactor your code as you go along to use any new feature.

分享给朋友:
您可能感兴趣的文章:
随机阅读: