Hi,
as far as i know you also have to define the app_label as Meta
parameter like this
class Meta:
app_label = "your_app_name"
Regards,
Alendit.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-
It is also possible to import you models from *models/** from within *
models.py* file.
On Sun, Feb 6, 2011 at 8:02 PM, Mark (Nosrednakram)
wrote:
> If there isn't anything in your models/__init__.py nothing will get
> loaded. You might try somthing like the following in your models/
> __init__.
If there isn't anything in your models/__init__.py nothing will get
loaded. You might try somthing like the following in your models/
__init__.py:
from app.models import modelname
from app.models import anothermodelname
Where modlenames are actually individual files with model definitions.
Sorr
Hi Guys,
Am very new to django and am working on a relatively large web
application which includes over 15 models.
Now I want to define each model in its own file and store them in a
folder called models, so I first created the folder "models" and
created a file "__init__.py" in that folder and def
4 matches
Mail list logo