Django经验 [英] Experience with Django

查看:131
本文介绍了Django经验的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读了关于 Django框架的一些精彩内容,我对此感兴趣。但是,在决定将其用于一个小型项目之前,我想听到更多的地球意见:请写下您的经验,框架超出通常的玩具网站,它与其他主要网络框架(ASP.NET,RoR等)

解决方案

我构建了报纸CMS ,让我的学生纸上大学。 Django是完美的(我发现RoR不直观,令人沮丧)。我能够以一种我所爱的语言迅速发展,得到了一个优秀的社区和丰富的文档的支持。它抽象出来只是为了加快发展速度,给了我足够的力量来设计一个完全符合我所需要的系统。我没有被锁定,但我明白有些做。这是您隐含的妥协,它是任何框架的买入的一部分。唯一符合所有人对项目生活需求的框架根本就没有框架。



重要的问题不在于你是否被困在一个框中,但是无论你是否能够在时间到来的时候能够在外面。为此,我会认为目前没有框架非常好,但是我相信Django值得一些信誉,因为Django和他们gals绝对知道这一点。引用Django联合创作者之一的Jacob Kaplan-Moss:


重要的是要意识到最重要的互操作性是用户的代码,坦率的Web框架往往吸引到这里。软件的一个基本事实是,随着它的发展和成熟,它变得越来越多的领域特定,越来越不通用。下面我会多谈一下现在的重要部分是意识到,一般框架应该能够在堆栈增长时将控制权归结于域特定替换。在大多数情况下,框架不会。






我们只能希望我们能看到Django到达一个你可以舒服地超越的地方,其实我很有把握。任何框架都将加快发展速度,但如果您选择Django,那么您将会非常好。


Having read some great things about the Django framework I'm becoming quite interested in it. But before making my decision to use it for a small project I would like to hear some more down to earth opinions: Please write of your experience with the framework beyond the usual "toy" website and how well it compares generally with other major web frameworks (ASP.NET, RoR, etc.)

解决方案

I built a newspaper CMS to bring my student paper online in college. Django was the perfect fit (I found RoR unintuitive and frustrating). I was able to develop rapidly in a language I loved, supported by an excellent community and with a wealth of documentation. It abstracted-out just enough to speed development and gave me enough power to design a system that did exactly what I needed. I didn't feel locked in, but I understand that some do. This is a compromise you implicitly make, it's part of the buy-in with any framework. The only "framework" that fits everyone's needs for the life of their project is no framework at all.

The important question is not whether or not you are trapped in a box, but whether or not you are able to step outside the box when the time comes. To this end I'll argue that no framework is very good at this at the moment, but I believe Django deserves some credit here because the Django guys & gals definitely know this. To quote Jacob Kaplan-Moss, one of Django's co-creators:

It’s important to realize that the most important kind of inter-operability is with the user’s code, and frankly web frameworks often suck here. A basic truth of software is that as it grows and matures it becomes more and more domain-specific, and less and less generic. I’ll talk more about this below; the important part for now is to realize that general frameworks should be able to cede control to domain-specific replacements as the stack grows. For the most part, frameworks don’t.

We can only hope that we'll see Django reach a place where you can "outgrow it" comfortably, and in fact I'm confident it will. Any framework will speed development, but if you opt for Django you'll be in very good hands.

这篇关于Django经验的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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