Django-- File "manage.py", line 16 ) from exc ^ SyntaxError: invalid syntax


fudandandembp:guest futantan$ python manage.py runserver
 File "manage.py", line 16 ) from exc ^ SyntaxError: invalid syntax

用python3 解決

fudandandembp:guest futantan$ python3 manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

June 07, 2020 - 07:50:40
Django version 3.0.7, using settings 'guest.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM