DjangoCon 2015

Desarrolla una aplicación Django usando datos abiertos públicos

Joe Kokenge  · 

Transcripción

Extracto de la transcripción automática del vídeo realizada por YouTube.

I'm glad you all showed up I didn't think anybody would be here with Jacob speaking at the same time thank you thank you um so the idea for this talk came about through my own experiences learning Django and really any framework and the the idea was

that I've my experience has been let's say I've worked a couple of the basic tutorial with jangle it's the polls app I got that down I got my feet wet I kind of know where some things are at and then and then I want to know where I go next

um intermediate tutorials are often like build a blog build like a to-do list or some other not worthless at but not really that exciting I mean you're not you're not gonna be the next person to put a blog platform into production and you know or any

other those applications so my experience has been learning from other journalists a good place to start is using public data to build a django app or any app the public day using public data and by public data I mean government data or anything from a government

agency it's a ready-made data set so lets you build a less complicated application from the start in the case we're going to walk through an application I built for the express-news using restaurant inspections it let me focus on some aspects of the

framework like the kind of the basic core components like views templates my models the URL routing to the exclusion of other parts like testing or the admin interface and those parts are important but in the beginning when you're just trying to take the

next step up from a basic tutorial it's pretty it's good to focus on the core components they're going to be using all the time and then you can pick a more complicated example after that so we're going to do is I'm going to walk through

probably four or five examples of public applications in production that serve public data and they're going to go through some examples of where to get public data I'm also going to walk you through a little bit of how to file a Freedom of Information

request and we're also going to dig in a little dig in that restaurant inspections application and I built for the express-news um just I put the talk up there's a URL if you probably can't read that django app from public data Omaha Joe org I'll

tweet that out at the very end of the app of the slides I have a link to this github repo which has a readme that I kind of wrote out the talk with all the links and a little bit of kind of a little blurbs of everything that I cover in the talk so you can

just kind of sit back and relax ah alright first though I want to go back in time a little bit little history Django was developed in 2003 and 2004 at the lawrence journal-world the story that I heard and some of you might have lived it some developers there

were essentially building out some web some components for their CMS and they built a couple things to solve some problems when they step back they realized they had a framework the first official release of Django as an open source project was in July of

2005 but a few months before that in May of 2005 the first non journal-world public Django application was put into production and that was Chicago Crime org Chicago crime was it was a seminal application I mean you could say that it was the one of the first

if not the first application in the news applications data-driven dated journalism movement um it's been copied a million times by crime apps everywhere was essentially just a scraping of Chicago crime data that Adrienne put uh mashed up with Google Maps

API before there was actually Google Maps API so the very first Django application that was ever built that wasn't what the Lawrence journal-world was built on public data can't go wrong ten years later Django powers Instagram Pinterest disqus orbits

radio Mozilla Prezi and a whole bunch more I mean I just ripped us off from Jacob cap and mosses blog I mean you can walk down the halls of this conference and see that it's pretty much like Django is in many ways a who's who of the modern internet

I know that's that's not a bad at all for a couple guys in Lawrence Kansas but it still powers news organizations LA Times Texas Tribune the Atlantic San Antonio express-news humbly sunlight foundation Chicago Tribune the washington post some of these

use it for their CMS I know the Atlantic they're giving a talk here Texas Tribune guys are all over here and its alumni Chicago Tribune they have their own crime map we'll look another application that they have the New York Times their interactive

newsgroup started out I think on jango as far back as 2007 they might have some jangle applications in production but they've since switched to rails mostly as we look at these examples your your public your Django application that serves public data will

essentially do one thing on all these applications do this one thing if they don't do anything and that's essentially taking government data digest it kind of so that you're essentially regurgitating it back to the public um the government does

what they the government does put data online they put a lot of it online they don't do a very good job of putting it online in any way that's usable for a normal human um and that's I guess the cool thing about doing a public app a django app

from public data is that especially early on it'll let you build an application that people will engage with i mean anybody in here and their local community goes back asks for five years of homicide data puts that online you're going to get feedback

you're going to get people who are interested in it and it's even if you're only trying to build out your portfolio to get a regular development gig it's a really cool way to do it I mean you're going to generate some conversation and you're

going to generate a little bit of a stir the first application will look at and all these applications do this all you'll be the mama bird the first application was the Los Angeles Times homicide report this idea came about with a a journalist and and

developer the journalists had the idea of reporting on every homicide in LA County I think it covers five or six years and there's about a thousand homicides every year in LA so the database itself is about five or six thousand homicides they the actual

database wouldn't you know that you could easily fit that in an Excel spreadsheet for example but it's not be very interesting for you to take a look at this Excel spreadsheet families are going to sit around their kitchen table at night looking at

this Excel spreadsheet digging into homicides in LA County what this application basically does is serves those homicides back and lets you search sort filter in a pretty easy way as a nice little map that helps you drill down into a neighborhood and you can

see pretty quickly if you want to look at the men who were already got this up men who were shot in the last year or 2014 there was 383 you can do the same thing in your community you probably don't have the time or the resources to compile data by hand

[ ... ]

Nota: se han omitido las otras 3.593 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.