码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-06-07 16:33:00      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:col   syn   server   app   types   erro   control   stat   apply   

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.

 

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

标签:col   syn   server   app   types   erro   control   stat   apply   

原文地址:https://www.cnblogs.com/clairedandan/p/13060878.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!