Re: Best practice of subclassing default/3rd part apps?

2012-10-06 Thread Xun Yang
valent). (Your project directory > needs to be, and typically will be, earlier on sys.path than > site-packages or (yuck) dist-packages.) > > Installing upgrades to other packages CAN (but usually doesn't) break > any of these approaches, requiring you to track down the i

Best practice of subclassing default/3rd part apps?

2012-10-04 Thread Xun Yang
Quite often I have to make small changes to the original code when I'm using default/3rd part apps. Take an example of setting constrains for password, the default SetPasswordForm in django.contrib.auth.forms and RegistrationForm in django-registration don't have any. So I have to subclass them