Chris
Chris

Reputation: 12181

cleaning django db of previous tables

I had a table in Postgres called user that was a custom model. I then switched over to the default Django User class, but there have been issues because of the name overlap. How can I either wipe the previous table, or wipe the entire DB (still in testing, so not a big deal) to start over?

Upvotes: 0

Views: 70

Answers (2)

armonge
armonge

Reputation: 3138

The simplest would be to execute a DROP TABLE statement directly in your database prompt, remember that Django models are just like any other table for your database

Upvotes: 1

Ska
Ska

Reputation: 6888

dropdb --help

Run this in the terminal

Upvotes: 0

Related Questions