Hello Flavio Curella!
On Tue, 01 Nov 2005 03:33:01 -0800 you wrote:

> 
> 
> Grigory Fateyev wrote:
> > Hello Flavio Curella!
> > On Thu, 27 Oct 2005 20:20:23 -0000 you wrote:
> >
> > >
> > > hi all, I've this model:
> > >
> > > from django.core import meta
> > > from django.models.auth import User

from django.models import auth, core

> > >
> > > class Article(meta.Model):
> > >   title = meta.CharField(maxlength=255)
> > >   content = meta.TextField()
> > >   author = meta.ForeignKey(User) // problem is here, I think
> >     author = meta.ForeignKey(auth.User) # May be?
> >
> 
> no, :( --> NameError: name 'auth' is not defined
> 
> and with:
> <code>
> from django.models import auth
> </code>
> --> NameError: name 'User' is not defined
> 
> Other ideas?
> 


-- 
Всего наилучшего!
greg [at] anastasia [dot] ru Григорий.

Reply via email to