Django - manage.py sql APPNAME not generating model SQL
I have a relatively large flat application that I'm working on. To
maintain separation of concerns, I've split the model and view files into
auth_models, dashboard_models, taxonomy_models and more. These have been
placed in the folder structure as
APPNAME/
app/
models/
__init__.py
auth_models.py
dashboard_models.py
taxonomy_models.py
...
views/
__init__.py
dashboard_views.py
taxonomy_views.py
...
My app/models/__init__.py has the following:
from auth_models import *
from dashboard_models import *
from taxonomy_models import *
However, when I run ./manage.py sql app, I get no output whatsoever. No
warnings, nothing at all.
The reason for this question is I'm implementing a database modification
and migration in which South cannot handle several aspects. So I'm
essentially starting over with a fresh schema and will later implement a
data conversion script to migrate the existing dataset. To do this, I need
the schema to create the model tables.
No comments:
Post a Comment