BEGIN;
COMMIT;
is the output of manage.py sql app (empty sql script for postgreSQL)

I am fairly new to python, so I completely don't mind trivial questions,
in app/models/__init__.py I have:
----
# base models
from proj.app.models.base import *
# models derived from base
from proj.app.models.more_models import *

# I even added
__all__ = [ 'List', 'Of', 'All', 'My', 'Model', 'Classes' ]
-----
and it still wouldn't work

if I run shell and try to use my models from there ( from
proj.app.models import * ) everything works OK, dir shows all my model
classes...



On 5/3/06, Michael Radziej <[EMAIL PROTECTED]> wrote:
>
> Honza Král wrote:
> > Yes, when I have all my model classes in file models.py, manage.py sql
> > works just fine
> >
> > when I split my models into two or more files and put them into models
> > subdirectory (with __init__.py containing the proper __all__ list), it
> > does not work:
> > BEGIN
> > COMMIT;
> >
> > before magic-removal I user manage.py model1 model2 model3, and that worked.
>
> Hmm ... and you import from model1, model2 and model3? This wasn't
> necessary before magic-removal. Sorry for asking trivial things if you
> are aware. If this isn't the problem, I can't help much.
>
> Though, I'm not sure what "BEGIN" and "COMMIT;" should mean to us. Is
> this some internal debugging message?
>
>
> Michael
>
> >
>


--
Honza Král
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to