PyCharm无法识别已安装的Django应用

时间:2020-04-18 21:49:31

标签: python django pycharm anaconda virtualenv

我创建了一个Django项目,然后启动了app,但是在project_name/project_name/urls.py中,当我说app_name时,PyCharm无法识别我的from app_name import views //initialize outside build List<String> letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']; Row( children: <Widget>[ ...letters .map( (letter) => GestureDetector( child: Container( margin: EdgeInsets.all(8.0), padding: EdgeInsets.all(8.0), decoration: BoxDecoration( border: Border.all(color: Colors.amber)), child: Text( letter, style: TextStyle(fontSize: 20), ), ), onTap: () { int index = letters.indexWhere((String alpha) => alpha == letter); setState(() { letters.removeAt(index); }); }, ), ) .toList() ], ), 。但是从命令行运行项目是可行的。

想法?我正在使用virtualenv和Python 3.7.3的Anaconda发行版。 Windows上的Pycharm 2020.1。

0 个答案:

没有答案