Re: syncdb does not find model, but it does in the shell

2012-06-12 Thread Benedict Verheyen
On 6/06/2012 16:47, jmolmo wrote: > I think that you have to indicate app_label in your separate model > file > According to: > https://docs.djangoproject.com/en/1.4/ref/models/options/ > > class MyTestModel(models.Model): > field1=models.CharField(max_length=12) > field2=models.CharField(

Re: syncdb does not find model, but it does in the shell

2012-06-06 Thread Kurtis Mullins
+1 -- Nice find! On Wed, Jun 6, 2012 at 10:47 AM, jmolmo wrote: > I think that you have to indicate app_label in your separate model > file > According to: > https://docs.djangoproject.com/en/1.4/ref/models/options/ > > -- You received this message because you are subscribed to the Google Grou

Re: syncdb does not find model, but it does in the shell

2012-06-06 Thread jmolmo
I think that you have to indicate app_label in your separate model file According to: https://docs.djangoproject.com/en/1.4/ref/models/options/ class MyTestModel(models.Model): field1=models.CharField(max_length=12) field2=models.CharField(max_length=12) class Meta: app_label =

Re: syncdb does not find model, but it does in the shell

2012-06-06 Thread Kurtis Mullins
I'm pretty sure you can't have a folder named models and that your models file needs to be called models.py -- unless you use some sort of a 'hack' to work around it. I remember seeing a bug posted about this issue which was pretty easily google-able. I just don't remember the bug number off hand,