1.my SqlClient does not currently support high version python3
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
The reason is that after due mysqlclient does not currently support high version python, this error may be based on error to find the file location, open base.py file, locate the following code: you will not be commented out after being given command execution if statement.
1. Watching for File Changes with StatReload ER (using the loader status monitoring file changes
The reason: It may be inconsistent version of Django and Python version or versions PyMysql
Solution: https://www.jianshu.com/p/c44b0c88fafe
The reason: no modification with routing, I have here the fault is crm / urls.py the url (r '^ $', views.dashboard), - the $ remove enough.
Solve https://www.cnblogs.com/guokaifeng/p/11084997.html
3.Django created Model Times the following error:
TypeError: init() missing 1 required positional argument: ‘on_delete’
Solution: define the foreign key when the need to add on_delete =; i.e.: contract = models.ForeignKey (Contract, on_delete = models.CASCADE)
For the following reasons: Django upgrade to 2.0 after the association between the table and the table, you must write on_delete parameters, otherwise it will report an exception:
4. error when you add menus menu:
Exception Value: no such table: crm_menus
Solve: python manage.py makemigrations crm
python manage.py migrate
5.Django报错Exception Value: no such table xx
Perform the following two steps: Python manage.py makemigrations app_name Python manage.py the migrate
6.django error when migrating data; TypeError: Object Supporting at The Buffer API required
Solve: settings.py password must be a string type
7. PyCharm after 2019 replaced connect to the database username and password database names Yes, that connection does not go up:
Connection to nb_crm@localhost failed. [08001] Could not create connection to database server. Attem
Solution:
First use mysql administrator logs in the terminal, which is the root
Solution: Run the following command to change the time zone:
the Variables like Show '% time_zone%'; the SET, Ltd. Free Join time_zone = '+8: 00'; After setting finished, quit mysql, log in again to check whether the time is modified after the end of the exit cmd, to reconnect a look inside pycharm
8.FieldError at /crm/consult_record_list/
Cannot resolve keyword 'delete_status' into field. Choices are: course_memo, course_title, date, day_num, has_homework, homework_memo, homework_title, id, re_class, re_class_id, scoring_point, studyrecord, teacher, teacher_id
9.报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
Solution: The reason is that after due mysqlclient does not currently support high version python, this error may be based on error to find the file location, open base.py file, locate the following code: if version will be commented in the statement following command will not execute an error .
version = Database.version_info # if version < (1, 3, 13): # raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)