On Mon, Nov 30, 2009 at 1:45 AM, Joshua Kramer <joskr...@gmail.com> wrote: > Hello, > > What document or example code should I consult to learn how to tap > into admin.py to output specific data based on a model? For example, > if I have an application and a handful of models, if I do "admin.py > sqlall" then I get output that consists of SQL statements used to > generate the model in the database. I would like to generate the > models in another syntax, specifically Protocol Buffers. This is > related to a previous post: > > http://groups.google.com/group/django-developers/browse_thread/thread... > > I am currently investigating the code that creates SQL tables, so I > think I am on the right track to generate the data - but how do I hook > this into manage.py?
You write a custom management command: http://docs.djangoproject.com/en/dev/howto/custom-management-commands/ Yours Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.