Django:
Under The Hood

Florian Demmer - www.floriandemmer.com

Amsterdam,  November 5th-7th 2015

Django Friends Meetup, 2015-12-01

What is it?

 

  • Django conference with great core developer attendence
     
  • Usually in November (only 2nd one this year)
     
  • by the Dutch Django Association
     
  • in Amsterdam

Jacob Kaplan-Moss

HTTP in Django *

  • Pretty old code; Request/response; WSGI interface
  • Django "middlewares": request/response hooks
  • WSGI middlewares
    Tip: https://github.com/evansd/whitenoise
  • requests have their own URL resolver!
  • The future:
    http://channels.readthedocs.org/en/latest/

https://speakerdeck.com/jacobian/response-cycle-django-under-the-hood-2015

Ola Sitarska

Django Admin

  • admin got new style (django-flat-theme)
  • components:
    • AdminSite
    • ModelAdmin
    • ChangeList

Iacopo Spalletti

Django CMS & ORM

  • on top of admin:
    • 1/3rd of code is admin related
  • on top of orm
    • drafts are copies of complete data
  • on top of urlconf
    • "apphooks" extend dynamically

https://www.nephila.it/talk/django-cmsduth.html#/

End of first day

Russel Keith-Magee

Keynote

  • stepping down as Django Software Foundation president
     
  • ~10 years with Django project
  • a look back
  • importance of mentoring and
    social aspects of large open source projects

Josh Smeaton

Expressions

  • should make .extra() and .raw() obsolete
  • DB backend independent
  • better documentation in 1.8
  • composable:
    Sum(F('talk') + F('hold')) + Sum('wrap'))
     

https://speakerdeck.com/jarshwah/expressions-no-speaker-notes

Amber Brown

Twisted & Django *

  • hendrix - a WSGI runner
    Django support
    websocket support
  • django-channels a good step forward
  • Django with Twisted long term/futureproof
  • greenlets are bad: https://goo.gl/3vLjDN

https://speakerdeck.com/hawkowl/django-and-twisted-django-under-the-hood-2015

James Aylett

(Static) Files in Django

  • FileField and storage backends
  • use the {% staticfiles %} tag
  • use external tools for asset pipeline
    • avoid "not invented here"
    • fast moving frontend-world
       

http://www.slideshare.net/jaylett/django-files-a-short-talk

Florian Apolloner

Django security

  • read https://djangoproject.com/security
  • don't trust user input
  • session management and auth
  • XSS, CSRF
  • ./manage.py check --deploy

Eric Holscher

Documentation systems

  • https://readthedocs.org
  • RST over MD for semantic meaning
    • "Check out :pep:`8`"
  • Sphinx
    • writing extensions

https://speakerdeck.com/ericholscher/understanding-documentation-systems

The End?

Boat party!

 Workshops

Mikey Ariel

Documentation...

  • docs are key component of software project
  • content strategy:
    • who? what? when? where? why?
  • devops for docs
    • unified toolchain for code and docs
    • continuous integration
    • iterative extension
  • docs or it didn't happen!

Sprints

All the things

  • official: http://www.djangounderthehood.com
  • impressions: https://goo.gl/Xwg8CH
  • videos: https://opbeat.com/events/duth/
  • Reinout: http://reinout.vanrees.org/weblog/tags/djangocon.html
  • me: http://www.floriandemmer.com
  • my twitter: @fdemmer
  • slides: https://slides.com/fdemmer

Django Friends - Vienna

  • meetup: http://www.meetup.com/django-vienna/
  • twitter: @DjangoVienna
Made with Slides.com