SlideShare a Scribd company logo
1 of 82
The world’s oldest django
project
James Bennett • PyCon Atlanta • February 19, 2010
In the beginning...
A regional news company
A regional news company

A dozen or so newspapers
A regional news company

A dozen or so newspapers
Two TV stations
A regional news company

A dozen or so newspapers
Two TV stations
Weekly magazines
A regional news company

A dozen or so newspapers
Two TV stations
Weekly magazines
Cable TV/Internet/telephony
Those responsible have been sacked
“The CMS”
“The CMS”
“The CMS”
“The CMS”
“The CMS”
Disentangling
Disentangling


 Mostly done prior to open-sourcing Django
Disentangling


 Mostly done prior to open-sourcing Django
 Though some bits survived
Ellington the product
Early customers
Early customers


 Some technically inclined
Early customers


 Some technically inclined
 Some… not
Customization
Customization


 Branch for each client? Bad idea
Customization


 Branch for each client? Bad idea
 Unified codebase? Good idea
What is the product?
What is the product?


 Dogfooding is great for QA
What is the product?


 Dogfooding is great for QA
 But how much of that code should you really sell?
What is the product?


 Dogfooding is great for QA
 But how much of that code should you really sell?
 Do you treat your own company as a client?
“Removing the Lawrence”
Deployment headaches
Deployment headaches


Each client runs their own servers
Deployment headaches


Each client runs their own servers
Wildly divergent setups
Deployment headaches


Each client runs their own servers
Wildly divergent setups
Initial solution: Ellington as a hosted service
The port that ate Cleveland
Django moves on
Django moves on


Django 0.95 and 0.96 released
Django moves on


Django 0.95 and 0.96 released
Internal sites pinned to 2006 revision
Django moves on


Django 0.95 and 0.96 released
Internal sites pinned to 2006 revision
Hosted client sites pinned to 0.91 release tag
http://code.djangoproject.com/wiki/RemovingTheMagic
First porting attempt
First porting attempt


 Automated tools
First porting attempt


 Automated tools
 Built on early versions of Python’s 2to3
First porting attempt


 Automated tools
 Built on early versions of Python’s 2to3
 Takes more time than porting by hand!
Second porting attempt
Second porting attempt


 Targeting Django 1.0 (unreleased)
Second porting attempt


 Targeting Django 1.0 (unreleased)
 Partially automated, partially manual
The final push
The final push


 All hands on deck!
The final push


 All hands on deck!
 Testing, testing, testing
The final push


 All hands on deck!
 Testing, testing, testing
 Finally relaunched internal sites November 2008
What we’ve learned
Preparation is important
Preparation is important


 A real staging server
Preparation is important


 A real staging server
 Internal review before deployment
Testing is important
Testing is important


 Unit tests saved us during the porting process
Testing is important


 Unit tests saved us during the porting process
 Buildbot for continuous integration
Testing is important


 Unit tests saved us during the porting process
 Buildbot for continuous integration
 Spidering tools for live testing
Deployment is (still) hard
Deployment is (still) hard


 But automated deployment is a lifesaver
Deployment is (still) hard


 But automated deployment is a lifesaver
 Currently using Capistrano
Deployment is (still) hard


 But automated deployment is a lifesaver
 Currently using Capistrano
 Isolated environments
Hosting solves a lot of
problems
Change control
Change control


 Completely unified codebase for Ellington
Change control


 Completely unified codebase for Ellington
 Migration framework (South)
Change control


 Completely unified codebase for Ellington
 Migration framework (South)
 Custom code isolated as client-specific applications
Open source
Open source


Non-core functionality being released
Open source


Non-core functionality being released
Internal code becomes external dependency
Code savings
Code savings


 Modern Django, open sourcing and jettisoning legacy code
Code savings


 Modern Django, open sourcing and jettisoning legacy code
 Depending on measurements, up to 40k lines of code cut in
 porting
Reorganization
Reorganization


 In 2009, one dev team became two
Reorganization


 In 2009, one dev team became two
 Commercial products team
Reorganization


 In 2009, one dev team became two
 Commercial products team
 Internal sites team
Questions?

More Related Content

What's hot

Coding Dojo: Adding Tests to Legacy Code (2014)
Coding Dojo: Adding Tests to Legacy Code (2014)Coding Dojo: Adding Tests to Legacy Code (2014)
Coding Dojo: Adding Tests to Legacy Code (2014)
Peter Kofler
 

What's hot (12)

OpenSlava 2015 When DevOps Hurts
OpenSlava 2015 When DevOps HurtsOpenSlava 2015 When DevOps Hurts
OpenSlava 2015 When DevOps Hurts
 
Continuous Integration with Puppet
Continuous Integration with PuppetContinuous Integration with Puppet
Continuous Integration with Puppet
 
testing for people who hate testing
testing for people who hate testingtesting for people who hate testing
testing for people who hate testing
 
Designing Test Cases for the Gilded Rose Kata (2013)
Designing Test Cases for the Gilded Rose Kata (2013)Designing Test Cases for the Gilded Rose Kata (2013)
Designing Test Cases for the Gilded Rose Kata (2013)
 
Coding Dojo: Adding Tests to Legacy Code (2014)
Coding Dojo: Adding Tests to Legacy Code (2014)Coding Dojo: Adding Tests to Legacy Code (2014)
Coding Dojo: Adding Tests to Legacy Code (2014)
 
shanghai
shanghaishanghai
shanghai
 
Porque Odeio Branches
Porque Odeio BranchesPorque Odeio Branches
Porque Odeio Branches
 
GWT and Angular - Relatives or Foes
GWT and Angular - Relatives or FoesGWT and Angular - Relatives or Foes
GWT and Angular - Relatives or Foes
 
Ci2d - The Colossal Hood For Agile Development And Deployment
Ci2d - The Colossal Hood For Agile Development And DeploymentCi2d - The Colossal Hood For Agile Development And Deployment
Ci2d - The Colossal Hood For Agile Development And Deployment
 
OPNFV CI and Challenges: How we solved them - if we solved them at all!
OPNFV CI and Challenges: How we solved them - if we solved them at all!OPNFV CI and Challenges: How we solved them - if we solved them at all!
OPNFV CI and Challenges: How we solved them - if we solved them at all!
 
Le PERL est mort
Le PERL est mortLe PERL est mort
Le PERL est mort
 
Achieving Continuous Delivery with Puppet
Achieving Continuous Delivery with PuppetAchieving Continuous Delivery with Puppet
Achieving Continuous Delivery with Puppet
 

Viewers also liked (7)

Using FluidDB with Django
Using FluidDB with DjangoUsing FluidDB with Django
Using FluidDB with Django
 
Errubrika bidezko zereginen kalifikazioa
Errubrika bidezko zereginen kalifikazioaErrubrika bidezko zereginen kalifikazioa
Errubrika bidezko zereginen kalifikazioa
 
Django Pro ORM
Django Pro ORMDjango Pro ORM
Django Pro ORM
 
Django-Queryset
Django-QuerysetDjango-Queryset
Django-Queryset
 
OTLA Workshop on Grading and Responding Fall 2008
OTLA Workshop on Grading and Responding Fall 2008OTLA Workshop on Grading and Responding Fall 2008
OTLA Workshop on Grading and Responding Fall 2008
 
Relationships in Django ORM
Relationships in Django ORMRelationships in Django ORM
Relationships in Django ORM
 
Five class-based views everyone has written by now
Five class-based views everyone has written by nowFive class-based views everyone has written by now
Five class-based views everyone has written by now
 

Similar to The World's Oldest Django Project

Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...
Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...
Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...
adunne
 
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
CODE BLUE
 
Continuous inspection with Sonar
Continuous inspection with SonarContinuous inspection with Sonar
Continuous inspection with Sonar
gaudol
 

Similar to The World's Oldest Django Project (20)

Pipeline as code for your infrastructure as Code
Pipeline as code for your infrastructure as CodePipeline as code for your infrastructure as Code
Pipeline as code for your infrastructure as Code
 
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
Non equilibrium Molecular Simulations of Polymers under Flow Saving Energy th...
 
Continuous Delivery of (y)our infrastructure.
Continuous Delivery of (y)our infrastructure.Continuous Delivery of (y)our infrastructure.
Continuous Delivery of (y)our infrastructure.
 
Living in a multiligual world: Internationalization for Web 2.0 Applications
Living in a multiligual world: Internationalization for Web 2.0 ApplicationsLiving in a multiligual world: Internationalization for Web 2.0 Applications
Living in a multiligual world: Internationalization for Web 2.0 Applications
 
Continuous Infrastructure First
Continuous Infrastructure FirstContinuous Infrastructure First
Continuous Infrastructure First
 
Atmosphere 2016 - Arvid Picciani - Continuous Deployment for Massive Scale Em...
Atmosphere 2016 - Arvid Picciani - Continuous Deployment for Massive Scale Em...Atmosphere 2016 - Arvid Picciani - Continuous Deployment for Massive Scale Em...
Atmosphere 2016 - Arvid Picciani - Continuous Deployment for Massive Scale Em...
 
From Data to Actions and Insights at Conviva with Rui Zhang and Yan Li
From Data to Actions and Insights at Conviva with Rui Zhang and Yan Li From Data to Actions and Insights at Conviva with Rui Zhang and Yan Li
From Data to Actions and Insights at Conviva with Rui Zhang and Yan Li
 
From V8 to Modern Compilers
From V8 to Modern CompilersFrom V8 to Modern Compilers
From V8 to Modern Compilers
 
Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...
Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...
Living in a Multi-lingual World: Internationalization in Web and Desktop Appl...
 
Monktoberfest Fast Delivery
Monktoberfest Fast DeliveryMonktoberfest Fast Delivery
Monktoberfest Fast Delivery
 
How to Upgrade to the Newest Shiniest Django Version
How to Upgrade to the Newest Shiniest Django VersionHow to Upgrade to the Newest Shiniest Django Version
How to Upgrade to the Newest Shiniest Django Version
 
Continuous Integration for Spark Apps by Sean McIntyre
Continuous Integration for Spark Apps by Sean McIntyreContinuous Integration for Spark Apps by Sean McIntyre
Continuous Integration for Spark Apps by Sean McIntyre
 
Continous Delivery of your Infrastructure
Continous Delivery of your InfrastructureContinous Delivery of your Infrastructure
Continous Delivery of your Infrastructure
 
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
[CB19] I KNOW WHAT YOU DID LAST NIGHT : Pwning The State-Of-The-Art the IoT H...
 
Janus conf'19: janus client side
Janus conf'19:  janus client sideJanus conf'19:  janus client side
Janus conf'19: janus client side
 
True Git
True Git True Git
True Git
 
Continuous inspection with Sonar
Continuous inspection with SonarContinuous inspection with Sonar
Continuous inspection with Sonar
 
Jython on Django
Jython on DjangoJython on Django
Jython on Django
 
DEFCON 23 - Fernando Arnaboldi - abusing xslt for practical
DEFCON 23 - Fernando Arnaboldi - abusing xslt for practicalDEFCON 23 - Fernando Arnaboldi - abusing xslt for practical
DEFCON 23 - Fernando Arnaboldi - abusing xslt for practical
 
Automating the Quality
Automating the QualityAutomating the Quality
Automating the Quality
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 

The World's Oldest Django Project