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