Existem 22 posts na categoria Python

Change object after saving all inlines in Django Admin

12 Fev 2011

Admin is an awesome Django builtin app to create nice CRUDs for your models, and offers a lot of customizations hooks. You can personalize the templates, perform custom filters, modify newly created objects and if that's not enough, you can always create your own view to do something it doesn't by default.

Continue lendo

Adding methods dynamically in Python

06 Fev 2011

Given the dynamic nature of Python you can do many things in runtime, like add methods dynamically to an object or class. This is particularly useful when writing unit tests.

Continue lendo

Extending the User model in Django

11 Dez 2010

Django brings a built-in user authentication system, it includes an User model which has the most common attributes. But in most applications you may need to store additional attributes to users. Django has a way to do this too.

Continue lendo

Slides: Desenvolvimento web com Python e Django

08 Nov 2010

Segue os slides da minha palestra Desenvolvimento web com Python e Django.

Continue lendo

Difference between _, __ and __xx__ in Python

16 Set 2010

When learning Python many people don't really understand why so much underlines in the beginning of the methods, sometimes even in the end like __this__!

Continue lendo

Python 3.1.1. error on startup

29 Dez 2009

After installing Python 3.1.1 for Mac OS I got an error trying to start python3 from Terminal

Continue lendo