Django의 버그 처리
1194 단어 테크니컬
BUG
When I run this shell code, it will showed this error tips:
mysqlclient 1.3.13 or newer is required; you have 0.9.3.
solve
if version < (1, 3, 3):
raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__)
# query = query.decode(errors='replace')
query = query.decode(errors='replace')
Coding
Create django models
INSTALLED_APPS = [
'polls.apps.PollsConfig',
]
> python manage.py makemigrations polls
> python manage.py migrate