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(
+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
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 =
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,
4 matches
Mail list logo