Ludovico Magnocavallo wrote:

Now I run django-admin

\-($:~/prove/myproject/apps)-- django-admin.py sql polls

Umph...

\-($:~/prove/myproject/apps)-- django-admin.py sql choices
BEGIN;
CREATE TABLE choices_choices (
    id mediumint(9) unsigned auto_increment NOT NULL PRIMARY KEY,
    poll_id integer NOT NULL REFERENCES polls_polls (id),
    choice varchar(200) NOT NULL,
    votes integer NOT NULL
);
COMMIT;

The weird thing is that a separate model file inside the app automatically creates a new app. I'm sure there's a good reason for this, but to me it does not feel right, especially for apps involving quite a few complex objects.

Thanks *a lot* for your patience. :)

L.

Reply via email to