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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:29:31+00:00 2026-05-26T20:29:31+00:00

I have read the Django documentation (For reference, https://docs.djangoproject.com/en/1.3/intro/tutorial01/ ), but I’m still having

  • 0

I have read the Django documentation (For reference, https://docs.djangoproject.com/en/1.3/intro/tutorial01/), but I’m still having issues setting up a Django project to work with a database. Because I’m new to web development, I figured I would start with SQLite for development since I’m not putting anything into production yet and don’t have much experience with databases. (I would be fine starting with MySQL or PostgreSQL though.)

In my Django project folder, I know I need to edit the settings.py folder to specify the database and a few other things. The problem is that when I run python manage.py syncdb in terminal, it fails with this message:

django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 
or sqlite3 modules (tried in that order): No module named _sqlite3

I am assuming part of my problem is that I installed Python (2.7) from source code (explained in-depth in How would I build python myself from source code on Ubuntu?), yet my terminal is probably defaulting to the Python installed by default on Ubuntu. Or I suppose it could be that the Python (2.7) I built from source code somehow wasn’t linked to SQLite. Or I suppose it could be that I need to specify an SQLite file in settings.py under the NAME item in DATABASES, although I’m pretty sure that isn’t necessary for SQLite.

Can anyone identify the culprit? How would I remedy this as a long-term solution (i.e. Is there any way I can remove the ambiguity of having two co-existing Python installations on Ubuntu?) Most importantly, what do I need to do to set up a working database?

  • 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-26T20:29:31+00:00Added an answer on May 26, 2026 at 8:29 pm

    Do a ‘sudo apt-get install libsqlite3-dev’ and then recompile Python 2.7.

    In the long term, to reduce ambiguity of co-existing Python installations and packages, I highly recommend installing pip, virtualenv, and virtualenvwrapper.

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

Sidebar

Related Questions

I've read the Django documentation here: http://docs.djangoproject.com/en/dev/ref/forms/validation/ I've also browsed a number of search
I am having problems with django forms and image uploads. I have googled, read
I have read the GOLD Homepage ( http://www.devincook.com/goldparser/ ) docs, FAQ and Wikipedia to
I have read the Django book, but for the old version 1.1. Other than
I have read the documentation on this and I think I understand. An AutoResetEvent
I've got a Django template that initiates the Facebook OAuth process by doing: window.location='https://www.facebook.com/dialog/oauth?client_id=MY_CLIENT_ID&redirect_uri=http%3A//localhost%3A8000/fbpanel/explore-python'
I have read all on the theme but I can't understand what's wrong. $(document).ready(function()
I have read several tutorials, but I just can't this to work. My apache
It is possible you have Javascript read vars from Django template tags like var
I read from http://www.packtpub.com/article/friends-via-email-social-web-application-django-1.0 and follow the steps: => And change my setting.py SITE_HOST

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.