将文件夹和文件结构从django1.3迁移到django1.4的最佳方法是什么? [英] Whats is the best way to migrate folder and files structure from django1.3 to django1.4?

查看:140
本文介绍了将文件夹和文件结构从django1.3迁移到django1.4的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用django1.3创建的小项目,我想将其迁移到django1.4,但是由于文件结构稍有变化,什么是最佳迁移方式?

I have a little project created with django1.3 and I want to migrate it to django1.4 but since the files structure change a little, what is the best way to migrate?

推荐答案

阅读 https:首先//://docs.djangoproject.com/en/dev/releases/1.4/.

  • 要快速运行,只需将环境从Django1.3更新到1.4,通过修复任何不兼容警告和导入问题来调整设置文件和项目代码.
  • 为了进行全新更新,最好使用当前项目的相同名称创建一个空项目并使用当前代码进行迁移,主要覆盖foo/settings.py和foo/urls.py. 我更喜欢通过 http://justcramer.com/2011/01来遵循设置结构/13/settings-in-django/,完成后,无需在每次更新Django版本时合并基本settings.py.
  • For a quick run, just update env from Django1.3 to 1.4, tweak settings file and project code by fixing any incompatibility warning and imports issue.
  • For a clean update, better to create an empty project w/ the same name of the current project and migrate it w/ current code, mainly override foo/settings.py and foo/urls.py . I prefer to follow settings structure by http://justcramer.com/2011/01/13/settings-in-django/ , when it's done there is no need to merge base settings.py each time you update Django version.

这篇关于将文件夹和文件结构从django1.3迁移到django1.4的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆