﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8747	Importing models from within `__init__.py` prevents syncdb from creating tables	Julien Phalip	nobody	"I have a very simple app with this structure:

{{{
myapp/
    __init__.py
    models.py
}}}

That app wouldn't create its tables when running `syncdb`. After poking around I realised that it was because within the `__init__.py` I was importing the models:

{{{
# __init__.py

from models import *
...
}}}

So, my question: is that a case of ""don't do that"", and if so is that worth specifying in the documentation?

It took me quite a while to debug that, and I found nothing obvious in the docs to help me (if there is, please point me to it)."		closed	Database layer (models, ORM)	dev		fixed			Accepted	0	0	0	0	0	0
