1👍
✅
Well, Hedde is probably right about SQLAlchemy being a better suit, but if you still want to programmatically access manage.py
commands, checkout answers to this question.
Django project has a predefined structure, so that syncdb
in the scope of the project will affect only the apps which are a part of INSTALLED_APPS
in the settings.py
file.
The really fun stuff is that you can even have on-the-fly schema alteration with django-mutant
. Of course, you should use it only when you’re absolutely sure about when and what you’re doing :))).
Source:stackexchange.com