Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 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: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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@… 8 years ago.
Update the FAQ with a description that's more database system agnostic

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by asmodai@…

  • Owner changed from adrian to anonymous
  • Status changed from new to assigned
  • Version set to SVN

Find a patch attached.

Changed 8 years ago by asmodai@…

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

comment:2 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:3 Changed 8 years ago by tom@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

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

comment:4 Changed 8 years ago by mtredinnick

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

Will fix.

comment:5 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from reopened to closed

(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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.