Django

Code

Ticket #2166 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: paolo <paolo@php3.it> Assigned to: anonymous
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

faq.txt.diff (0.8 kB) - added by asmodai@in-nomine.org on 06/15/06 15:54:54.
Update the FAQ with a description that's more database system agnostic

Change History

06/15/06 15:54:24 changed by asmodai@in-nomine.org

  • owner changed from adrian to anonymous.
  • status changed from new to assigned.
  • version set to SVN.

Find a patch attached.

06/15/06 15:54:54 changed by asmodai@in-nomine.org

  • attachment faq.txt.diff added.

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

06/16/06 08:37:29 changed by mtredinnick

  • status changed from assigned to closed.
  • resolution set to fixed.

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

06/16/06 10:06:13 changed by tom@eggdrop.ch

  • status changed from closed to reopened.
  • resolution deleted.

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

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

06/16/06 21:31:02 changed by mtredinnick

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

Will fix.

06/16/06 21:32:52 changed by mtredinnick

  • status changed from reopened to closed.
  • resolution set to fixed.

(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/Change #2166 (faq.txt - Consider to pipe into django-admin.py dbshell to clear data)




Change Properties
Action