I have been using django to write a rather complicated object-oriented model for a menu system.
Recently I have considered the idea of allowing the administrator to create a 'build_menu' object.
Ideally one would provide a name for input, and once created the menu would have:
- call django startapp menu
- copy of views.py, models.py, and admin.py from the menu app, replacing classnames with classnames
- append to urls.py to include the new areas for 'menu'
- append '.prefix_menu' to the INSTALLED_APPS in settings.py
- python manage.py syncdb
- pkill python (on Dreamhost so I'd need to restart the process to see new changes on the screen)
Obviously there is no generic implementation that will do this for me, but the bigger question is: Is this possible? Would it be possible to write these commands into a script to do it from the server side, and after creating a new 'build_menu' object on the django admin site, have it run that script and then refresh the page when it completes? Or is this something I would be unable to do from the admin site?