Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Django: The web framework for perfectionists w...

Jacob Kaplan-Moss
May 01, 2012
2.1k

Django: The web framework for perfectionists with deadlines.

An introduction to Django given at Future Insights Live 2012 in Las Vegas.

Jacob Kaplan-Moss

May 01, 2012
Tweet

More Decks by Jacob Kaplan-Moss

Transcript

  1. LJW

  2. The Inside of Love The Inside of Love Katlyn Conroy

    explores the idea of home on her solo album "I Think I'll Stay Inside" Next time you see Katlyn Conroy out and about and having fun, tell her to go home. That’s where she makes her best music, and it’s the reason she came up with a lovely new solo Best bets Distant early warnings Your bets Today's events Search events Bad Veins / Division Day This Cincinnati duo — plus a reel-to-reel tape machine named Irene — perform dense pop and rock compositions with strong beats and lots of bells and whistles... Today at 10:00pm The Replay Lounge, $2 - $3 Most discussed Event Sidewise / Left On Northwood / Viper Room Dance Floor / Harlequin Shade Theory Home Events Latest Music Movies Food Nightlife More Login Search
  3. The Inside of Love The Inside of Love Katlyn Conroy

    explores the idea of home on her solo album "I Think I'll Stay Inside" Next time you see Katlyn Conroy out and about and having fun, tell her to go home. That’s where she makes her best music, and it’s the reason she came up with a lovely new solo Best bets Distant early warnings Your bets Today's events Search events Bad Veins / Division Day This Cincinnati duo — plus a reel-to-reel tape machine named Irene — perform dense pop and rock compositions with strong beats and lots of bells and whistles... Today at 10:00pm The Replay Lounge, $2 - $3 Most discussed Event Sidewise / Left On Northwood / Viper Room Dance Floor / Harlequin Shade Theory Home Events Latest Music Movies Food Nightlife More Login Search
  4. PHP

  5. abs() acos() acosh() addcslashes() addslashes() aggregate() aggregate_info() aggregate_methods() aggregate_methods_by_list() aggregate_methods_by_regexp()

    aggregate_properties() aggregate_properties_by_list() aggregate_properties_by_regexp( ) aggregation_info() apache_child_terminate() apache_get_modules() apache_get_version() apache_getenv() apache_lookup_uri() apache_note() apache_request_headers() apache_reset_timeout() apache_response_headers() apache_setenv() apc_add() apc_cache_info() apc_clear_cache() apc_compile_file() apc_define_constants() apc_delete() apc_fetch() apc_load_constants() apc_sma_info() apc_store() apd_breakpoint() apd_callstack() apd_clunk() apd_continue() apd_croak() apd_dump_function_table() apd_dump_persistent_resources() apd_dump_regular_resources() apd_echo() apd_get_active_symbols() apd_set_pprof_trace() apd_set_session() apd_set_session_trace() apd_set_socket_session_trace() array() array_change_key_case() array_chunk() array_combine() array_count_values() array_diff() array_diff_assoc() array_diff_key() array_diff_uassoc() array_diff_ukey() array_fill() array_fill_keys() array_filter() array_flip() array_intersect() array_intersect_assoc() array_intersect_key() array_intersect_uassoc() array_intersect_ukey() array_key_exists() array_keys() array_map() array_merge() array_merge_recursive() array_multisort() array_pad() array_pop() array_product() array_push() array_rand() array_reduce() array_reverse() array_search() array_shift() array_slice() array_splice() array_sum() array_udiff() array_udiff_assoc() array_udiff_uassoc() array_uintersect() array_uintersect_assoc() array_uintersect_uassoc() array_unique() array_unshift() array_values() array_walk() array_walk_recursive() ArrayIterator::current() ArrayIterator::key() ArrayIterator::next() ArrayIterator::rewind() ArrayIterator::seek() ArrayIterator::valid() ArrayObject::__construct() ArrayObject::append() ArrayObject::count() ArrayObject::getIterator() ArrayObject::offsetExists() ArrayObject::offsetGet() ArrayObject::offsetSet() ArrayObject::offsetUnset() arsort() ascii2ebcdic()
  6. from django.db import models class Photo(models.Model): image = models.ImageField() title

    = models.CharField(max_length=150) uploaded = models.DateTimeField()
  7. >>> Photo.objects.all() >>> Photo.objects.filter( ... uploaded = datetime.date.today() ... )

    >>> Photo.objects.filter( ... title__startswith = "pants", ... uploaded__lte = some_date) ... )
  8. from photos.models import Photo from django.shortcuts import render def photo_index(request):

    return render(request, 'photos/index.html', {'photo_list' : Photo.objects.all()} )
  9. {% extends "base" %} {% block content %} <h1>{{ photo.title

    }}</h1> <img src="{{ photo.get_image_url }}" />
  10. {% extends "base" %} {% block content %} <h1>{{ photo.title

    }}</h1> <img src="{{ photo.get_image_url }}" /> {% endblock %}
  11. AMD, Canonical, Discovery, Disqus, Google, HP, IBM, Instagram, Intel, Lexis-Nexis,

    Library of Congress, Mozilla, NASA, National Geographic, the New York Times, Orbitz, PBS, Pinterest, PolitiFact, Rdio, VMWare, Walt Disney, the Washington Post…
  12. In Search of Lost Time 1,500,000 Infinite Jest 484,000 Django

    360,000 New Testament 180,000 Your first manuscript 60,000
  13. “ ” — Boston Companies using Django http://j.mp/hnOsVl “The documentation

    and community are second to none.” “[W]e’ve found that people …can get up-to-speed relatively quickly thanks to the excellent documentation…” “Django … provides an excellent developer experience, with great documentation and tutorials…” “Our initial choice … was based on the strength of the Django community and documentation…” “Productive development, good documentation, flexibility, and it just works.”
  14. “ ” GeoDjango … is undoubtedly the most sophisticated GIS

    functionality in any web framework in any language or platform. — Ted Leung http://bit.ly/Q91EW
  15. “ ” Our technical goals are to never lose data,

    be very fast, and favor boring and faded technologies where possible. A rule of thumb that has worked well for me is that if I'm excited to play around with something, it probably doesn't belong in production. — Maciej Ceglowski http://blog.pinboard.in/2010/01/technical_underpinnings/