python - Customized django manage.py use case -
i using django
use object relational mapper(orm) feature and, currently, have nothing web-framework. @ present have been able customize django.setting
suit database needs , defined test data models
bumped manage.py
, required build database tables etc.
how can call manage.py
(or achieve purpose) within module model
defined , not command line?
well, hedde right sqlalchemy being better suit, if still want programmatically access manage.py
commands, checkout answers question.
django project has predefined structure, syncdb
in scope of project affect apps part of installed_apps
in settings.py
file.
the fun stuff can have on-the-fly schema alteration django-mutant
. of course, should use when you're absolutely sure when , you're doing :))).
Comments
Post a Comment