Re: running migrate through views itself

2015-10-12 Thread kk
In the project, every year new books are opened and every organization has it's own database for ever every financial year. Happy hacking. Krishnakant. On Tuesday 13 October 2015 07:49 AM, Tim Graham wrote: You can execute management commands from Python code using call_command(): https://doc

Re: running migrate through views itself

2015-10-12 Thread Tim Graham
You can execute management commands from Python code using call_command(): https://docs.djangoproject.com/en/stable/ref/django-admin/#running-management-commands-from-your-code It seems a bit risky to me to expose functionality to your users that allow them to change your database schema as a re

running migrate through views itself

2015-10-11 Thread kk
Hello all. The financial project I am developing requires that when the user creats on create organization. the Migrate command has to be run automatically. I have 2 questions regarding this. 1, If I am using sqlalchemy instead of sqlobject, will the migrate utility work? 2, If yes then how can