将网站从 Django 0.96 重建为 Django 1.2

发布于 2024-08-24 14:22:54 字数 241 浏览 6 评论 0原文

我已经用 Django 0.96 完成了一个网站(于 2007 年完成),现在我们正在考虑为 Django 1.2 重建它(而不仅仅是迁移)。

谁能给我指出 Django 1.2(2010 年 4 月发布)的新(且值得花时间)小部件、插件和其他内容。

我听说过“South”和一个用于调试的小部件(不记得名字了),但我在这里有点迷失。

I've got a website done in Django 0.96 (done in 2007), and now we are thinking about rebuilding it (not just migrating) for Django 1.2 .

Can anyone point me to the new (and worth the while) widgets, plugins and other stuff for Django 1.2 (released in april 2010).

I've heard of "South" and of a widget for debugging (can't remember the name), but I'm a little lost here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

太傻旳人生 2024-08-31 14:22:54

Django API 非常稳定,因此您可能根本不需要重写它(除非您真的想要)。

我在 2007 年使用 0.97-pre 做了一个网站——至少我认为他们是这么称呼它的,它是 trunk 6688。无论如何,我已经将该网站移植了两次,一次移植到 1.0,然后移植到 1.1.1。我们必须处理的唯一“主要”事情是管理员移动到自己的文件中,但这主要是在编辑器中剪切和粘贴加上一些调整。您会遇到一些小问题,例如 maxlength 变为 max_length 等,但这很容易处理。

检查向后不兼容更改此处,以及 此处 看看是否有任何问题出现在您面前。通读 ORM 文档,就像您从未见过它们一样之前——很多事情都发生了变化。您可能想要查看一些模型关系和查询,看看修订后的 ORM 是否使其中一些操作更容易/更高效。

我建议将 GrappelliFilebrowser(事实上,我认为最近发布的 filebrowser需要 grappelli)。查看Pinax,了解汇集在同一屋檐下的一整套应用程序。那里有很多东西,你需要稍微探索一下。根据您正在执行的操作,您可能会对 GeoDjango 感兴趣。等等,等等。我相信你会喜欢所有的新玩具。

The Django API is amazingly stable so you may not have to rewrite it at all (unless you really want to).

I have a site I did in 2007 using 0.97-pre -- at least I think that's what they called it, it was trunk 6688. Anyway, I have ported the site twice, once to 1.0 and then to 1.1.1. The only "major" thing we had to deal with was Admin moving into its own file, but that was mostly cut-and-paste in the editor plus a few tweaks. You'll run into small stuff like maxlength going to max_length, etc., but that's easy stuff to deal with.

Check the lists of Backward Incompatible Changes, and here, and here to see if anything jumps out at you. Read through the ORM docs as if you've never seen them before -- a lot has changed. You may want to look at some of your model relationships and queries and see if the revised ORM makes some of them easier/more efficient to do.

I recommend using Grappelli along with Filebrowser (in fact I think the recent releases of filebrowser require grappelli). Take a look at Pinax for a whole bushel basket of apps brought together under one roof. There's a lot out there and you sort of have to poke around a little. Depending on what you're doing, GeoDjango may be of interest to you. Etc., etc. I'm sure you'll have fun with all of the new toys.

他夏了夏天 2024-08-31 14:22:54

您可能听说过 django-debug-toolbar

You probably heard about the django-debug-toolbar

洛阳烟雨空心柳 2024-08-31 14:22:54

当然,还有发行说明,但其余的只是你的东西。 。 寻找。

South 用于架构迁移,而不是调试。

Of course, there's the release notes, but the rest is just stuff you... find.

South is for schema migration, not debugging.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文