Ticket #2166: faq.txt.diff

File faq.txt.diff, 801 bytes (added by asmodai@…, 18 years ago)

Update the FAQ with a description that's more database system agnostic

  • docs/faq.txt

     
    409409``django-admin.py sqlreset`` command into your database's command-line utility.
    410410For example::
    411411
    412     django-admin.py sqlreset appname | psql dbname
     412    django-admin.py sqlreset appname | django-admin.py dbshell
    413413
    414 That "psql" assumes you're using PostgreSQL. If you're using MySQL, use the
    415 appropriate command-line utility, ``mysql``.
     414The ``dbshell`` parameter will automatically spawn the correct command
     415interpreter for the configured database in ``settings.py``.
    416416
    417417``django-admin.py sqlreset`` outputs SQL that clears the app's database
    418418table(s) and creates new ones. The above command uses a Unix pipe to send the
Back to Top