Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7974943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:31:14+00:00 2026-06-04T08:31:14+00:00

Are there django commands that A. Delete all tables B. delete all data in

  • 0

Are there django commands that

A. Delete all tables

B. delete all data in all tables

C. Create all tables as defined in the model?

I cannot find these right now!

And by commands i mean those little things that are like

runserver

etc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:31:15+00:00Added an answer on June 4, 2026 at 8:31 am

    A. Delete all tables

    manage.py sqlclear will print the sql statement to drop all tables

    B. delete all data in all tables

    manage.py flush returns the database to the state it was in immediately after syncdb was executed

    C. Create all tables as defined in the model?

    manage.py syncdb Creates the database tables for all apps in INSTALLED_APPS whose tables have not already been created.

    See this page for a reference of all commands: https://docs.djangoproject.com/en/dev/ref/django-admin/

    But you should definitely look into using south as someone already mentioned. It’s the best way to manage your database.

    N.B: syncdb is deprecated in favour of migrate, since Django 1.7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an easy way to reset a django database (i.e. drop all data/tables,
is there anything built-in in Django templates that will allow me to compare two
Is there a way to show the SQL that Django is running while performing
I have a few management commands for my Django poject that is run automatically
In my current django project I have a model that stores very long strings
Is there analogue of Django Messages Framework (or RoR flash messages) in Java? http://docs.djangoproject.com/en/dev/ref/contrib/messages/
Before Django 1.0 there was an easy way to get the admin url of
Is there any analog of django context processors in turbogears2? In tg1 was stdvars,
Is there an Eclipse plugin to help with Django projects/apps? If there are multiple
Is there a recommended way of using Django to clean an input string without

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.