Workarounds for Django failed to start the database and cannot command line start manage.py

Source: Internet
Author: User

Problem Description: 

I can not solve some of the problems Django encountered in two days, I learn to watch video learning, the video does not explain something, I am synchronizing the database, cannot command the start. The manage.py file cannot be started, the command line error is unable to import Django, the latter do not know how to modify, the browser reported errors for the operation error:

        

Operationalerror at/userinfo/
No such table:bolg_userinfo
Request Method: POST
Request URL: http://127.0.0.1:8000/userInfo/
Django Version: 1.10.2
Exception Type: Operationalerror
Exception Value:
No such table:bolg_userinfo
Exception Location: C:\Users\AKALI\AppData\Local\Programs\Python\Python35\lib\site-packages\django\db\backends\sqlite3\base.py in Execute, line 337
Python executable: C:\Users\AKALI\AppData\Local\Programs\Python\Python35\python.exe
Python Version: 3.5.2
Python Path:
[' E:\\encodedata\\pythondata\\mydjango ', ' E:\\encodedata\\pythondata\\mydjango ', ' c:\\users\\akali\\appdata\\ Local\\programs\\python\\python35\\python35.zip ', ' c:\\users\\akali\\appdata\\local\\programs\\python\\python35 \\DLLs ', ' c:\\users\\akali\\appdata\\local\\programs\\python\\python35\\lib ', ' c:\\users\\akali\\appdata\\local\ \programs\\python\\python35 ', ' c:\\users\\akali\\appdata\\local\\programs\\python\\python35\\lib\\site-packages ‘]
Server Time: Sun, Feb 2018 10:23:49 +0000

Solution: (That's how I fix It)

I'm actually very simple here, Django environment variable is not configured, I do not know whether to configure, because I saw several videos, there is no explanation need to configure environment variables, I in the search problem, I saw the installation of some said configuration environment variables, I configured a bit. Configuration method here will not speak, we can Baidu a bit. Hope to help everyone!

Workarounds for Django failed to start the database and cannot command line start manage.py

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.