0.0.Pycharm tips

Automatically adjust the font size

Increase (font larger)

 

 

 

Decrease (smaller font)

 

Background color

 

pycharm left menu problem

 

solve

 

pycharm configure Django project started

1. Turn mange.py, and then run, it will prompt a bunch of things, that there is no configuration parameters. In pycharm the
click edit configurations  edit configuration parameters.

 

 

2. After opening the following dialog box, enter the configuration parameters in the dialog scrip parameters corresponding to  the runserver 127.0.0.1:8000 . After configuration is complete click ok.

 

3. After completion of the above configuration information directly run the manage.py file: appear as a result, the configuration is successful.

 

 

 

 4. Enter the browser  http://127.0.0.1:8000

 

Django2.2报错 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

Django ready to connect to MySQL, the command line, enter the command  python manage.py makemigrations being given after:  django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
After due mysqlclient does not currently support high version python, this error can be found in accordance with the error message file location, open base.py file, locate the following code:

version = Database.version_info
if version < (1, 3, 13):
    raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)

The if statement commented after the 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__)

Category:  errorDjango

 

python3报错:AttributeError:strobjecthasnoattributedecode

 (2018-10-10 15:19:52)

Reproduced

   

Error Code: query = query.encode (errors = 'replace')

Solution: to decode can be changed to encode.

 

Guess you like

Origin www.cnblogs.com/Rivend/p/11601270.html
0.0