can you explain a bit better? where do you want to insert?
On 28 Okt., 00:46, Vman <[email protected]> wrote:
> how do i insert this:
>
> from django.contrib.auth.models import User
> class Bookmark(models.Model):
> title = models.CharField(maxlength=200)
> user = models.ForeignKey(User)
> link = models.ForeignKey(Link)
>
> into this?
>
> from django.db import models
> class Link(models.Model):
> url = models.URLField(unique=True)
>
> I am getting this error:
>
> NameError: name 'models' is not defined
>
> Thanks...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---