Solution: django.db.utils.OperationalError:unable to open database file

Source: Internet
Author: User
Tags install django

This is a source code for a website project downloaded from GitHub. I wanted to run it on my own computer, and the process was quite tortuous, but it was finally done.

1. Installation process:

python2->virtualenv->django1.9.8

2. Module installation

pip install xadminpip uninstall Xadminpip install Django-simple-captchapip Install Djangoueditorpip Install Pillow

3. Run:

Python manage.py runserver

The directory where the files are located is the D drive.

Error:

django.db.utils.OperationalError:unable to open database file

Workaround: Probably refer to http://zmrenwu.com/post/3/to build the development environment, the tutorial shows the creation of the workspace in the C drive. So I moved the papers to C:\Users\admin\workspace. Run again

Python manage.py runserver

Success!

So there's not enough authority? A conjecture, not necessarily right.

Solution: django.db.utils.OperationalError:unable to open database file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.