Thanks Christoph , Solved my problem.
Love you.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group,
Hi,
the errors disappear when the models.py file is changed by adding _id to
the fields defined for the tables where the errors are exist.
As an example for one table I changed
class AuthUserUserPermissions(
models.Model):
user = models.ForeignKey(AuthUser)
permission = models.ForeignK
Hi,
the errors disappear when the models.py file is changed by adding _id to
the fields defined for the tables where the errors are exist.
As an example for one table I changed
[code]
class AuthUserUserPermissions(models.Model):
user = models.ForeignKey(AuthUser)
permission = models.F
Hi,
I have the same problem.
The models.py file was created by
python manage.py inspectdb > models.py
I just copied it over into my app and modified it. My output is
readDatabase.AuthGroupPermissions: (models.E012) 'unique_together' refers
to the non-existent field 'group_id'.
readDatabase
Hey John,
Agree with James. makemigrations command doesn't create models.py file -
it's on your plate. But after creating models.py file and filling it with
your models - you have to create migration file with makemigrations command
and run migrate one to create all required tables, fk, etc.
-
On Fri, Sep 11, 2015 at 10:37 AM, John Emmatty
wrote:
> I ran makemigrations against my legacy, MySQL database and it created
> models.py file for me, I copied the file to my applications package
> directory and ran makemigrations again after adding a table to extend the
> default users table. No
I ran makemigrations against my legacy, MySQL database and it created
models.py file for me, I copied the file to my applications package
directory and ran makemigrations again after adding a table to extend the
default users table. Now makemigrations is throwing following errors . I
created a
7 matches
Mail list logo