Ticket #2166: faq.txt.diff
File faq.txt.diff, 801 bytes (added by , 18 years ago) |
---|
-
docs/faq.txt
409 409 ``django-admin.py sqlreset`` command into your database's command-line utility. 410 410 For example:: 411 411 412 django-admin.py sqlreset appname | psql dbname412 django-admin.py sqlreset appname | django-admin.py dbshell 413 413 414 Th at "psql" assumes you're using PostgreSQL. If you're using MySQL, use the415 appropriate command-line utility, ``mysql``.414 The ``dbshell`` parameter will automatically spawn the correct command 415 interpreter for the configured database in ``settings.py``. 416 416 417 417 ``django-admin.py sqlreset`` outputs SQL that clears the app's database 418 418 table(s) and creates new ones. The above command uses a Unix pipe to send the