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

Is Django for Designers?

Julia Elman
September 06, 2012
900

Is Django for Designers?

Julia Elman

September 06, 2012
Tweet

Transcript

  1. http://flic.kr/p/5aW79J http://flic.kr/p/7Ejyc4 http://flic.kr/p/7Ejyc4 ...the person editing the templates is not

    necessarily a programmer... they should not have to know Python... “ ” - Adrian Holovaty
  2. {% if cats %} The cat says, “Meow!” {% else

    %} There are no cats :( {% endif %} Getting started
  3. {% for kitten in kittens %} {{ kitten }} {%

    empty %} There are no kittens :( {% endfor %} Getting started
  4. #base.html {% block extra_js %}{% endblock %} #events.html {% extends

    “base.html” %} {% block extra_js %} <script src=”{{ STATIC_URL }}js/events.js”> </script> {% endblock %} Getting started
  5. {% if cat %} {{ cat.noise }} {% else %}

    {% if dog %} {{ dog.noise }} {% endif %} {% endif %} What’s new in Django 1.4
  6. {% if cat %} {{ cat.noise }} {% elif dog

    %} {{ dog.noise }} {% endif %} What’s new in Django 1.4
  7. “Pencil” symbol by Creologica + “Light bulb” symbol, from The

    Noun Project “Brain” symbol by Samuel Dion-Girardeau, from The Noun Project “Conversation” symbol by Samuel Green, from The Noun Project Slide 12 Slide 51 Slide 53 Credits