使用python manage.py runserver运行django项目报如下错误
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
Exception in thread django-main-thread:
最后还有一句
AttributeError: 'str' object has no attribute 'decode'
问题解决
这种情况一般是因为版本问题导致的
我的版本是django 2.2.2 pymysql 0.10.1 python 3.5.3
将django版本改成2.0就行了