addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

djangovan: The Django Vancouver Meetup Group Message Board › December 2012 Meetup Recap

December 2012 Meetup Recap

Bryan C.
bryanchow
Group Organizer
Vancouver, BC
Post #: 4
Thank you to everyone who attended the December 2012 Django Vancouver Meetup this week. Here are the notes from the meetup, as originally recorded at http://openetherpad.o...­

--------------------------------------­----------------------

SPONSORS
OpenRoad Communications
Mozilla Vancouver

John Boxall from Mobify: Class Based Views
https://github.com/jo...­

Functional Views
Template view - render template using django.shortcuts.render
Detail view - present object details using get_object_or_404
List view
Create view - create model instance using ModelForm
Edit view - edit model instance using ModelForm

CBVs
Template view - subclass TemplateView, set template_name
Detail view - subclass DetailView, set model and template_name
List view - subclass ListView, set model, context_object_name, template_name
Form views - subclass CreateView, UpdateView, etc.

Debugging
Override get/post/etc methods to insert pdb call

Decorators
@method_decorator on dispatch method

Mixins
Example: StaffRequiredMixin
Example: MessageMixin

Composite views

Expose

Pitfalls

Context

Round Table
* Are functional views going to be deprecated? No - they're too useful! Generic functional views will be though: https://docs.djangopr...­
* Universe is offering free cloud hosting for a year
* Django ORM holding Postgres and NoSQL databases back with policy of lowest common denominator functionality?
* DjangoDBArray https://github.com/ec...­
Powered by mvnForum

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy