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

Posted 正霜霜儿

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.

 

以上是关于Django-- File "manage.py", line 16 ) from exc ^ SyntaxError: invalid syntax(的主要内容,如果未能解决你的问题,请参考以下文章

python_django_views文件中return render("XXXX/XXX.html") 显示 Template file not found

如何检查 django 表单中的字段类型?

Django 模型:ValueError:缺少“file_name.ext”的静态文件清单条目

python 中 django 的问题-------- 请高人指点 尽量详细点哦 初学django

Django mysql 问题。。。报错如下

Django在根据models生成数据库表时报