Re: User Authentication and Models

2007-11-11 Thread Darryl Ross
Patrick Ohearn wrote: > I have tried adding the following lines to by models.py. > > author = models.ForeignKey(User) > author = models.ForeignKey(django.contrib.auth.models.User) > > Both to no avail, thank you for your help so far :) Perhaps a more complete example might help you: {{{

Re: User Authentication and Models

2007-11-11 Thread Patrick Ohearn
On Sun, 2007-11-11 at 04:05 -0600, James Bennett wrote: > On Nov 11, 2007 3:57 AM, Patrick Ohearn <[EMAIL PROTECTED]> wrote: > > I have tried adding the following lines to by models.py. > > > > author = models.ForeignKey(User) > > author = models.ForeignKey(django.contrib.auth.models.User)

Re: User Authentication and Models

2007-11-11 Thread James Bennett
On Nov 11, 2007 3:57 AM, Patrick Ohearn <[EMAIL PROTECTED]> wrote: > I have tried adding the following lines to by models.py. > > author = models.ForeignKey(User) > author = models.ForeignKey(django.contrib.auth.models.User) > > Both to no avail, thank you for your help so far :) In orde

Re: User Authentication and Models

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 19:57 +1000, Patrick Ohearn wrote: > On Sun, 2007-11-11 at 20:39 +1100, Malcolm Tredinnick wrote: > > > > On Sun, 2007-11-11 at 01:30 -0800, Patrick Ohearn wrote: > > > I am writing a simple blog application with Django 0.96. I intend to > > > use > > > the built in Admin p

Re: User Authentication and Models

2007-11-11 Thread Patrick Ohearn
On Sun, 2007-11-11 at 20:39 +1100, Malcolm Tredinnick wrote: > > On Sun, 2007-11-11 at 01:30 -0800, Patrick Ohearn wrote: > > I am writing a simple blog application with Django 0.96. I intend to > > use > > the built in Admin page to manage my blog, so I wish to use Django's > > User Authenticati

Re: User Authentication and Models

2007-11-11 Thread Malcolm Tredinnick
On Sun, 2007-11-11 at 01:30 -0800, Patrick Ohearn wrote: > I am writing a simple blog application with Django 0.96. I intend to > use > the built in Admin page to manage my blog, so I wish to use Django's > User Authentication system. In my Blog model I need to make a > relationship for my 'user'

User Authentication and Models

2007-11-11 Thread Patrick Ohearn
I am writing a simple blog application with Django 0.96. I intend to use the built in Admin page to manage my blog, so I wish to use Django's User Authentication system. In my Blog model I need to make a relationship for my 'user' field to the auth_user table, but I can not find the model name to