app/django/core/management/commands/sql.py
author Todd Larsen <tlarsen@google.com>
Tue, 16 Sep 2008 18:00:55 +0000
changeset 159 451f39c0e1aa
parent 54 03e267d67478
child 323 ff1a9aa48cfd
permissions -rw-r--r--
Use zip to compress tiny_mce, and use zipserve to serve it in Google App Engine.

from django.core.management.base import AppCommand

class Command(AppCommand):
    help = "Prints the CREATE TABLE SQL statements for the given app name(s)."

    output_transaction = True

    def handle_app(self, app, **options):
        from django.core.management.sql import sql_create
        return '\n'.join(sql_create(app, self.style))