2. What is Django?
“ The Web framework for perfectionists
with deadlines
Django makes it easier to build better Web
apps more quickly and with less code
www.djangoproject.com
3. Who am I?
• Robert Coup
• CTO of Koordinates
- making geospatial data more accessible
- http://koordinates.com
• OSS contributor
• 2 year Djangonaut
• robert@coup.net.nz
4. What’s it for?
• Building dynamic Web sites
• A high level Web framework
• Abstracts common problems
• Shortcuts for fast development
13. Databases
• Django will create your tables for you
• python manage.py syncdb
• Additional SQL commands:
• python manage.py sql*
• Ability to preload data
14. Shell
• python manage.py shell
• from yachties.racing.models import
Race
• Manipulate your models live
15. Server
• Server for development & debugging
• python manage.py runserver
• http://localhost:8000/
16. Automatic Admin Site
• Built dynamically from your models
• Authentication & validation
• Flexible and customisable
17. URL Handling
• All in urls.py
• Separates views from how they’re called
• Just regular expressions
20. Templates
• Pulls data from a dictionary (“context”)
• Simple logic constructs (“tags”)
• Simple data manipulation (“filters”)
• Inheritance
21. More
• Form generation & handling
• Contrib apps:
• builtin: admin, forms, gis, feeds,
• 3 party: see Google Code
rd
• Any Python code will work with Django