8-django-fundamentals-slides

Page 1

Odds and Ends

Reindert-Jan Ekker nl.linkedin.com/in/rjekker/ @rjekker


Overview  Generic Views  Debugging Django  Where to go from here


Class-based Views  Classes, not Functions  Functionality can be inherited  http://goo.gl/RE8ric


Generic Views  Django provides generic views for common functionality 

TemplateView

DetailView

ListView

 Generic Form editing views 

CreateView

UpdateView

DeleteView

 http://goo.gl/h2ZC3k


Debugging Your Django Code  Common python debugging technique: 

import pdb

pdb.set_trace()

 Works well for debugging view code  More powerful way to debug django: 

Django-debug-toolbar

http://goo.gl/OjCstU


Resources  www.djangoproject.com 

Django Website

 www.revsys.com/django/cheatsheet 

Django Cheat Sheet from Revolution Systems

 ccbv.co.uk 

Guide to Django Class-Based Views

 www.djangopackages.com 

Django Packages

 djangosnippets.org 

Django snippets


Overview  Generic Views  Debugging Django  Resources


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.