Right I managed to fix it and feel really stupid at the same time but
I thought I would post here in case anyone else has the same issue
my mistake was using
class meta:
and not
class Meta:
doh! got to love case sensitivity.
Thanks to all that offered suggestions
Alistair
---
Alistair Marshal
Ok, perhaps this is a pinax issue?
I would not have thought that it would have made a difference but I'll
try asking on the pinax list.
Thanks for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django us
strange. I´m using this for one of my applications and it works fine.
hers´s my setup:
/library/
__init__.py
admin.py
views.py
/models/
__init__.py
addon.py
camera.py
material.py
__init__.py (in the models-directory):
from library.models.material
I tried to do this several months ago during the run up to the 1.0
release and, at that time, the capability was broken. Furthermore I
recall having a discussion with some core developer that it was not on
the short list to fix for 1.0. I didn't submit a ticket for this, but
it may have been becau
On Oct 28, 1:43 pm, patrickk <[EMAIL PROTECTED]> wrote:
> you could try changing the import in __init__.py to someting like
> this:
> from app_name.models.model_file import Model1, Model2, ...
> e.g.
> from library.models.material import Material, MaterialImage
>
> ... might work.
>
Thanks for you
you could try changing the import in __init__.py to someting like
this:
from app_name.models.model_file import Model1, Model2, ...
e.g.
from library.models.material import Material, MaterialImage
... might work.
patrick.
On 28 Okt., 10:36, Alistair Marshall <[EMAIL PROTECTED]>
wrote:
> I have
I have been trying to split my models.py file into several smaller
more manageable files. I have created a folder named models, an in
there, created a __init__.py file which contains:
from other import *
from streams import *
from units import *
I have then split my models into the three files m
7 matches
Mail list logo