Maniac wrote:
Sorry, I was wrong with 'just import'. It should be 'import and
subclass'. I have it working like this:
Maniac, thanks a lot for the tip. Pretty clever, and a nice way to solve
my specific problem. :)
L.
On Aug 11, 2005, at 11:16 AM, Ludovico Magnocavallo wrote:
Jacob Kaplan-Moss wrote:
Ah, chances are that's because you didn't add the model file to
the __all__ in myapp/models/__init__.py
Nope, it's there...
Hm... what's the output of "django-admin sql" look like?
Jacob
Is there a standard way to have multiple files (eg one per class)
inside an app's model/ folder?
I seem to end up with a different app prefix for each file no matter
what I try, eg mysite/apps/myapp/boxes.py looks for a boxes_boxes table
instead of myapp_boxes.
3 matches
Mail list logo