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

Stackorigin – The Community of Question and Answers

Stackorigin – The Community of Question and Answers Logo Stackorigin – The Community of Question and Answers Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
Home/ Questions/Q 5566
Next
In Process
arjun
  • 0
arjun
Asked: July 18, 20212021-07-18T07:56:22+00:00 2021-07-18T07:56:22+00:00In: Programming

How do I delete DB (sqlite3) in Django 1.9 to start from scratch?

  • 0

How do I delete DB (sqlite3) in Django 1.9 to start from scratch?

dbsqllite
  • 1 1 Answer
  • 99 Views
  • 0 Followers
  • 0
Share
  • Facebook

    Related Questions

    • POSTMAN Maximum response size reached get method
    • copy the content of a branch to a new local branch?
    • Import SQL file into mysql
    • MySQL: Access denied for user 'test'@'localhost'
    • git stash apply version
    • how to NOT display a block from parent template in django
    • Django TemplateDoesNotExist
    • Did you install mysqlclient?
    • ImportError : cannot import name 'ugettext_lazy'
    • reverse() and reverse_lazy() in Django

    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
    1. ashok
      2021-07-18T12:30:28+00:00Added an answer on July 18, 2021 at 12:30 pm

      To delete DB (sqlite3) in Django 1.9 to start from scratch

      1. Delete the sqlite database file (often db.sqlite3) in your django project folder (or wherever you placed it)
      2. Delete everything except __init__.py file from migration folder in all django apps (eg: rm */migrations/0*.py)
      3. Make changes in your models (models.py).
      4. Run the command python manage.py makemigrations or python3 manage.py makemigrations
      5. Then run the command python manage.py migrate.

      That’s all.

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

    Sidebar

    Ask A Question

    Adv 120x600

    Looking for advertising?

    Consider These Things If You Appreciate What stackorigin Does: Stackorigin is a community where you can ask questions and find answers, for free to everyone. We would appreciate it if you bought us a coffee if you liked what we were doing.

    Buy me a Coffe

    Adv 120x600

    • Random
    • Answers
      • On: April 7, 2022
      • Answers: 0

      Top Skills To Become a Full Stack Developer

      • On: March 20, 2021
      • Answers: 0

      Why is the cost of living in the United States ...

      • On: August 26, 2021
      • Answers: 0

      Outlook.com SMTP Settings You Need to Send Email

      • On: September 16, 2021
      • Answers: 0

      What is method resolution order MRO in python

      • On: August 6, 2022
      • Answers: 0

      Buy Generic Motilium Australia, Does motilium help

    • bruceparker
      bruceparker added an answer Yes, Viagra, a medication commonly prescribed for erectile dysfunction, can… October 27, 2023 at 5:15 am
    • sam
      sam added an answer Please go launch below link   https://digitalcloud.training/aws-sysops-administrator-associate-free-practice-exam-questions/ August 3, 2023 at 9:55 am
    • newoc
      newoc added an answer Absolutely! You can confidently utilize authentic and up-to-date Dumps that… July 22, 2023 at 7:31 am
    • strapcart_online
      strapcart_online added an answer Impotence is commonly seen in men between the ages of… July 21, 2023 at 8:26 am
    • lasop
      lasop added an answer If you're looking for the ultimate resource to excel in… July 19, 2023 at 5:00 am

    Adv 120x600

    Trending Categories

    Health
    2052Questions
    , 4Followers
    Programming
    1297Questions
    , 0Followers
    Technology
    218Questions
    , 3Followers
    General Knowledge
    131Questions
    , 0Followers
    Business & Finance
    86Questions
    , 4Followers

    Adv 120×600

    Stats

    • Questions 4k
    • Answers 1k
    • Best Answers 105
    • Users 190

    Users

    Heart Hospital in Calicut

    Heart Hospital in Calicut

    • 0 Questions
    • 0 Answers
    TrinityEyeHospital

    TrinityEyeHospital

    • 0 Questions
    • 0 Answers
    mollywilson02

    mollywilson02

    • 0 Questions
    • 0 Answers
    Arvihitech

    Arvihitech

    • 0 Questions
    • 0 Answers
    EssarEngineers

    EssarEngineers

    • 0 Questions
    • 0 Answers

    Adv 120×600

    Explore

    • Recent Questions
    • Most Answered
    • Answers
    • No Answers
    • Most Visited
    • Most Voted
    • Random
    • Polls

    Footer

    Stackorigin - The Community of Question and Answers

    Stackorigin

    Stackorigin is the world’s largest Q&A networking site, Stackorigin community brings you the collaboration of all the various Questions and the related Answers given by the community.

    About

    • About Us
    • Contact Us
    • FAQ
    • Submit Guest Post Article on Technology, Education, Health, Apps, Gadgets, IoT, AI, Business, Digital Marketing and More

    Info

    • Privacy Policy
    • Terms and Conditions
    • Community Guidelines
    • Tags

    Products

    • Tutorials
    • Advertising
    • Categories
    • Corona
    • StackHow

    Follow

    © 2022 Stackorigin. All Rights Reserved.

    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.