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

  • Home
  • SEARCH
  • 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 7031961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:52:20+00:00 2026-05-28T00:52:20+00:00

recently I started a small Django project that I developed on a local machine

  • 0

recently I started a small Django project that I developed on a local machine using a SQLite3 database and the integrated development server. I now copied the whole project to a server running Debian.

Everything worked well as long as I kept using the SQLite3 database. Now I wanted to switch to a local MySQL database, so I changed the settings.py file in my project’s root folder, created the database and added a user. I then ran syncdb and it created the needed tables without any problems.

Now I wanted to use the app, but I keep getting errors, because Django can not find the tables – neither the ‘standard tables’ like django_sessions nor my own tables – even though they are there (I checked the database).

The one thing that seems awkward about the DatabaseError pages I get is the following line:

Exception Location: /usr/local/lib/python2.6/dist-packages/django/db/backends/sqlite3/base.py in execute, line 234

It seems like Django is still using the SQLite3 backend even though I set it to use the MySQL backend.

The other thing that nearly makes me freak out is this: I deleted the data.sqlite file in my app’s root folder using rm. But when I use my app, the file is being recreated!

Can anyone tell me where I went wrong?

  • 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-05-28T00:52:20+00:00Added an answer on May 28, 2026 at 12:52 am

    When running in production with mod_wsgi or mod_python, new code isn’t incorporated until you reload/restart the webserver.

    If you are using apache with mod_wsgi, you can also touch the wsgi.py file to restart the python code only.

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

Sidebar

Related Questions

I've recently started exploring using AJAX for a small project, and I've had reasonable
I recently started using scons to build several small cross-platform projects. One of these
I recently started work on a personal coding project using C++ and KDevelop. Although
I recently started using Linux as my primary OS. What are the tools that
I recently started a small personal project (RGB value to BGR value conversion program)
I recently started reading Evans' Domain-Driven design book and started a small sample project
I recently started working on a small personal project in Ruby on Rails, and
I recently started a small project in which I wanted to use zxing. I
I recently just started playing around in PHP and got myself a small project/homework.
I recently started a new webforms project and decided to separate the business classes

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.