Challenges:
display 1.python3 manage.py makemigrations: Your version may need to upgrade
Solution: 1 upgrade version 2. Find the lib / pythonxx / site-packages / django / db / backends / mysql / base to base folder inside to check the version of the code notes about
2 error: AttributeError: 'str' object has no attribute 'decode
solution: find lib / pythonxx / site-packages / django / db / backends / mysql / operations file, an error local decode to encode
3. Create database when the coding problem, generally utf-8, otherwise the data can not be introduced inside the input Chinese pycharm
4. the operation of the page when: html // paths inside it enlarged
5. in Django which database foreign key connection:
Publisher = models.ForeignKey (to = "Publisher", on_delete = models.CASCADE)
my own version need to add
on_delete = models.CASCADE
6.