Django Microformats

2009-04-19 Thread ntoll
Guys, I’ve just created a new Django application that makes it easier to integrate and use Microformats in your web-application. I’m hosting it on GitHub: http://github.com/ntoll/microformats/tree/master Microformats are a means of adding semantic information that is both human and machine

Re: Model inheritance vs. User.get_profile()

2009-03-18 Thread ntoll
Thanks for the information and link Malcolm. To cut a long story short, I'll just use get_profile(). On Mar 17, 11:32 pm, Malcolm Tredinnick wrote: > On Tue, 2009-03-17 at 09:49 -0700,ntollwrote: > > Guys, > > > Asking for advice here. > > > What is the best way to extend the User class in > > d

Re: Model inheritance vs. User.get_profile()

2009-03-18 Thread ntoll
; is old) > > Dougal > > --- > Dougal Matthews - @d0ugalhttp://www.dougalmatthews.com/ > > 2009/3/17 ntoll > > > > > Guys, > > > Asking for advice here. > > > What is the best way to extend the User class in > > django.contrib.auth.model

Model inheritance vs. User.get_profile()

2009-03-17 Thread ntoll
-date now that there is model inheritance (for which get_profile() provided a means of overcoming). Pros/cons of each method? To my mind inheriting from User class is more elegant... but would love to know your thoughts on this. All the best, ntoll

Re: How can i access UserProfile from User in the views?

2009-03-17 Thread ntoll
{{ user.get_profile.home_address }} should do the trick. On Mar 17, 4:46 pm, Paolo Corti wrote: > Hi > I know is easy to access to the UserProfile, like here: > > from django.contrib.auth.models import User > u = User.objects.get(pk=1) # Get the first user in the system > user_address = u.get_pr