Changes between Version 1 and Version 2 of DjangoSuccessStoryPbsTeacherLine
- 01/31/08 13:46:24 (6 years ago)
v1 v2 2 2 3 3 [http://www.pbs.org/teacherline/ Visit PBS TeacherLine] 4 5 4 6 5 7 The original PBS !TeacherLine website was hosted in a Windows IIS environment running Macromedia Cold Fusion. This was problematic in many ways. All other PBS sites are hosted in a relatively traditional LAMP environment, which made it difficult to service the Windows server machines. As the original project developers left, there was nobody on staff with serious Cold Fusion expertise (and not much interest in learning Cold Fusion, which is used nowhere else in the organization). Finally, the Cold Fusion boxes began to deteriorate at an increasingly rapid pace, leading to constant outages and. It didn't help that at some point the Cold Fusion crash recovery and error reporting eventually completely gave out, forcing us to use external monitoring tools to catch the numerous outages. … … 7 9 In addition to the hardware difficulties and outages, the Cold Fusion code was also finicky and difficult to maintain. Again, finding developers with an expertise in Cold Fusion was difficult, which further compounded the code issues. The code running PBS !TeacherLine had become so convoluted that it was virtually impossible to add a new feature without rewriting several old features. 8 10 11 12 9 13 At the outset of what we called the PBS !TeacherLine Refresh project, we surveyed the landscape for modern, open source development frameworks that would naturally fit into the PBS Interactive systems. Ruby, PHP and Python were identified as the top language options. Ruby was gaining momentum with the Rails framework, but we had nobody on staff who had done more than played with Ruby. PHP is a language commonly used by PBS producers, and we had the staff to support PHP, but it lacked a robust framework for development (we examined CakePHP, Trax, and Zend Framework) and caused too much argument among developers about whether or not it was a "good" language. 10 14 11 15 Python was a natural choice for us since PBS has been running Zope/Plone apps for several years. We had several developers on staff with Python experience, but many of them had developed a keen awareness of the issues with that framework (this was pre-Zope 3, and PBS still supports both Zope 2 and Zope 3 projects). At OSCON 2006 several PBS developers attended Django sessions and came away with a good feeling. 12 16 PBS !TeacherLine is the first major application developed using Django on pbs.org. The site is hosted on the same servers as all other PBS websites, cohabiting with a variety of languages and configurations. We run Apache with mod_python in a multi-server environment. We utilize a CDN for serving static content and have integrated our site with third-party solutions for streaming video. 17 18 13 19 14 20 Working with Django has been a good experience. We needed a robust, flexible system that would facilitate a group of developers working on the same project. Django makes it very easy to have custom site configurations that accommodate our distributed development builds and migrating builds to different servers for various QA and review-related activities is incredibly easy. In addition, Django compliments the elegance of Python in a way that has reinforced good development habits and allows us to be a flexible group. … … 18 24 Flexibility of the sort described above is a key value in the Django framework. PBS is not exactly a software shop, so our requirements change often as projects evolve. Django and Python are both very friendly to an iterative development process that sometimes involves radical revision of the code. 19 25 26 27 20 28 We encountered few problems in getting Django to meet our needs. We had to create alternative versions of some components, such as the users and authorization systems, to accommodate our specific needs. However, these changes coexist peacefully with the original Django systems (which we maintain for the limited usage of the Django admin). 29 21 30 The Newforms development solved a lot of issues we had at first with the "old" forms, and we are also looking forward to the query restructuring currently underway. We have occasionally had issues working with the queries system, especially with regards to many-to-many relationships. We would love to see support for content types more closely incorporated into the Django queries system. 31 22 32 The issue of "beta-ness" has come up a couple of times when discussing Django with our colleagues. The delay of version one has been a point of ridicule for some holdout developers, but the version number has so far not impacted our development. What currently exists in Django generally meets our needs and operates in a reliable way. 23 33 24 We are still in development on several major Django projects. Other groups at PBS have also taken up Django, and there are several new sites that will launch at PBS utilizing the framework. We actively follow Django developments and will continue to do so as we work on new projects. 34 === Outcomes === 35 36 The Django-powered PBS !TeacherLine site launched in December 2007. We are still in development on several major Django projects. Other groups at PBS have also taken up Django, and there are several new sites that will launch at PBS utilizing the framework. We actively follow Django developments and will continue to do so as we work on new projects.