Re: django 1.8 , makemigrations throwing errors

2016-01-12 Thread Atul kumar Gupta
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

Re: django 1.8 , makemigrations throwing errors

2015-10-21 Thread Christoph Knapp
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 =

Re: django 1.8 , makemigrations throwing errors

2015-10-21 Thread Christoph Knapp
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 =

Re: django 1.8 , makemigrations throwing errors

2015-10-21 Thread Christoph Knapp
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'.

Re: django 1.8 , makemigrations throwing errors

2015-09-14 Thread ernando
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.

Re: django 1.8 , makemigrations throwing errors

2015-09-13 Thread James Schneider
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 >

django 1.8 , makemigrations throwing errors

2015-09-11 Thread John Emmatty
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