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 8603775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:24:11+00:00 2026-06-12T02:24:11+00:00

I logged in to my app’s directory in Heroku’s server: Heroku run bash -app

  • 0

I logged in to my app’s directory in Heroku’s server:

Heroku run bash -app appname

Then I deleted my database:

Rm -r dev.db

However when I try to sync my database it doesn’t create new tables. And when I go to the production site, it still has all database contents and lets me log in, etc.

Any insight into what I’m doing wrong? I want to completely recreate the database.

Note: I have a Django app

Update: Here are my database settings

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3", # Add "postgresql_psycopg2", "postgresql", "mysql", "sqlite3" or "oracle".
        "NAME": PROJECT_ROOT + os.sep + "dev.db",                       # Or path to database file if using sqlite3.
        "USER": "",                             # Not used with sqlite3.
        "PASSWORD": "",                         # Not used with sqlite3.
        "HOST": "",                             # Set to empty string for localhost. Not used with sqlite3.
        "PORT": "",                             # Set to empty string for default. Not used with sqlite3.
    }
}

then I have this injection code for Heroku:

import dj_database_url
DATABASES = {'default': dj_database_url.config(default='postgres://localhost')}
  • 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-12T02:24:12+00:00Added an answer on June 12, 2026 at 2:24 am

    Heroku gives you a Postgres database by default. To completely remove it run:

    heroku addons:remove heroku-postgresql:dev
    

    Then to create a new one:

    heroku addons:add heroku-postgresql:dev
    

    If it does not automatically promote this to your main DB (you should a config var DATABASE_URL if so) then run:

    heroku pg:promote HEROKU_POSTGRESQL_COLORHERE
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am logged into my server as root and tried to run this command:
Our app needs to add large amounts of text to SQL Server 2005 database
I plan to run the logged-in portion of my app in HTTPS, starting with
Please let me know how do I run the app under current logged in
For my iPhone app, an user can logged in using Facebook, then the app
I am working on an app which requires that the user be logged in
When you log out of a web app, should ALL your session be logged
I just deployed a Silverlight app. It's an authenticated app (i.e. only logged-in users
basically my app has a loginScreen and once logged u can go through many
Rails3 app with Rspec2 and Cucumber Cucumber Given /^that a user is logged in$/

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.