Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2166 closed enhancement (fixed)

faq.txt - Consider to pipe into django-admin.py dbshell to clear data

Reported by: paolo <paolo@…> Owned by: anonymous
Component: Documentation Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Now that django-admin.py/manage.py offers dbshell as an option, probably could be better to replace the example 'django-admin.py sqlreset appname | psql dbname' with 'django-admin.py sqlreset appname | django-admin.py dbshell' in faq.txt.

Attachments (1)

faq.txt.diff (801 bytes ) - added by asmodai@… 18 years ago.
Update the FAQ with a description that's more database system agnostic

Download all attachments as: .zip

Change History (6)

comment:1 by asmodai@…, 18 years ago

Owner: changed from Adrian Holovaty to anonymous
Status: newassigned
Version: SVN

Find a patch attached.

by asmodai@…, 18 years ago

Attachment: faq.txt.diff added

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

comment:2 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: assignedclosed

(In [3132]) Fixed #2166 - Use "manage.py dbshell" as the portable way to pipe commands to
the database. Thanks Paolo.

comment:3 by tom@…, 18 years ago

Resolution: fixed
Status: closedreopened

Why not use "python manage.py reset appname"?

  reset [appname ...]
    Executes ``sqlreset`` for the given app(s) in the current
    database.

comment:4 by Malcolm Tredinnick, 18 years ago

You're absolutely correct. I was asleep at the wheel. :-(

Will fix.

comment:5 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: reopenedclosed

(In [3137]) Fixed #2166 -- (take two!). Use "manage.py reset ..." to reset a model's
database tables, not the older piped combination that used to be required.

Note: See TracTickets for help on using tickets.
Back to Top