Hello, I have problems with making my models to work. Here is my appname.misc.models file
from django.db import models
class user(models.Model):
login=models.CharField(max_length=20)
email=models.EmailField(max_length=50)
banned=models.BooleanField()
key=models.CharField(max_length=15)
rights=models.CharField(max_length=10)
password=models.CharField(max_length=50)
question=models.CharField(max_length=200)
answer=models.CharField(max_length=50)
active=models.BooleanField()
Here in another app with sth like this
from django.db import models
from appname.misc import models as misc
class news(models.Model):
title=models.SlugField()
shortbody=models.CharField(max_length=250)
fullBody=models.TextField()
author=models.ForeignKey('misc.user')
And when I type manage.py sqlall news i got sth like this link text
I also tried to remove import statment and try do do this that way
author=models.ForeignKey('misc.user')
but still get error. Thx in advance for any help.