25.11.2014 Views

Conference Notes and Best Practices Release 1.3 ... - Read the Docs

Conference Notes and Best Practices Release 1.3 ... - Read the Docs

Conference Notes and Best Practices Release 1.3 ... - Read the Docs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Conference</strong> <strong>Notes</strong> <strong>and</strong> <strong>Best</strong> <strong>Practices</strong>, <strong>Release</strong> <strong>1.3</strong><br />

1.2.8 Base View<br />

• ContentMixin <strong>and</strong> TemplateView<br />

• Nav item names<br />

1.2.9 Why<br />

• Custom mixins<br />

• Elegance<br />

• can push constants to <strong>the</strong> template by declaring class properties<br />

• Lots of possibilities for mixins.<br />

• Django Braces<br />

<strong>1.3</strong> Custom User Model/Django Auth Tools<br />

Presenter: Aaron Merriam, Rocky Meza<br />

Description:<br />

Django Auth Tools<br />

FusionBox<br />

<strong>1.3</strong>.1 Custom User Models<br />

• Supported in Django 1.5<br />

• MOst apps don’t use a username (use Email instead)<br />

• Not <strong>the</strong> correct pattern<br />

• More control<br />

• Adding custom methods <strong>and</strong> properties<br />

<strong>1.3</strong>.2 Adding A Custom User Model<br />

• Must implement methods <strong>and</strong> custom manager<br />

• Custom user admin won’t work<br />

• Lots of custom code needs to be written<br />

• Lots of boilerplate<br />

• Custom login logic<br />

• Custom password reset logic<br />

6 Chapter 1. Meetups

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!