changeset 54 | 03e267d67478 |
child 323 | ff1a9aa48cfd |
53:57b4279d8c4e | 54:03e267d67478 |
---|---|
1 from django.core.management.base import AppCommand |
|
2 |
|
3 class Command(AppCommand): |
|
4 help = "Prints the CREATE TABLE SQL statements for the given app name(s)." |
|
5 |
|
6 output_transaction = True |
|
7 |
|
8 def handle_app(self, app, **options): |
|
9 from django.core.management.sql import sql_create |
|
10 return '\n'.join(sql_create(app, self.style)) |