DarkYoung's Notes
  • About Me
  • Tags
  • Catalog
  • Search
Navigation bar avatar
✕

    DarkYoung's Notes


    Enjoy the process and leave the results to luck
    Pure Commitment
    Hard work beats talent when talent fails to work hard
    All posts Most Popular Tutorials Tags

    Django连接Mysql报错

    显示没有安装数据库服务

    Posted on 2022 May 1

    python3 中django连接mysql使用的包是pymysql, 所以第一步先安装 pymysql pip install pymysql, 安装了并不代表就可以了, 还需要在项目的__init__.py [Read More]
    Tags: python Django Errors Mysql

    Django与Mysql的连接与开发

    Django框架与Mysql等数据库的联动,通过pymsql与orm等操作简化操作

    Posted on 2022 May 1

    通过pymysql可以使python能够轻松地操作数据库内容,而通过django的orm框架则可以更简单的操作数据库。 [Read More]
    Tags: python 全栈开发 Django Mysql orm

    python有关decode方法的知识与报错信息

    核心原因在于python2与python3对于字符串分别默认为bytes和str

    Posted on 2022 April 30

    出现这个问题可能是两个原因造成的: 1、Python2和Python3在字符串编码上的区别。 2、Python 3.4: str : AttributeError: ‘str’ object has no attribute ‘ decode [Read More]
    Tags: python Django Errors

    postman测试接口报错

    {"“detail“:“不支持请求中的媒体类型 “text/plain”。“"=>nil}

    Posted on 2022 April 30

    在使用postman测试Django写好的接口,利用post命令返回获得jwt的token时报的错 [Read More]
    Tags: python Django Errors postman API

    jwt与drf相关(前后端分离)

    前后端分离相关,跨域等问题解决

    Posted on 2022 April 30

    jwt [Read More]
    Tags: python jwt drf 全栈开发
    • ← Newer Posts
    • Older Posts →
    • RSS
    • Email me
    • GitHub

    DarkYoung  •  2023

    Powered by Beautiful Jekyll