美文网首页
Django开发中有用的package

Django开发中有用的package

作者: 石头车钥匙 | 来源:发表于2020-01-28 19:52 被阅读0次

    django-decouple

    使用.ini或者.env来保存项目运行时用到的配置信息

    • 安装:pip install python-decouple

    dj-database-url

    The dj_database_url.config method returns a Django database connection dictionary, populated with all the data specified in your URL. There is also a conn_max_age argument to easily enable Django’s connection pool.

    • 安装:pip install dj-database-url

    unipath

    Unipath is an object-oriented front end to the file/directory functions scattered throughout several Python library modules. It’s based on Jason Orendorff’s path.py but has a friendlier API and higher-level features. Unipath is stable, well-tested, and has been used in production since 2008. It runs on Python 2.6+ and 3.3+.

    • 安装:pip install Unipath

    相关文章

      网友评论

          本文标题:Django开发中有用的package

          本文链接:https://www.haomeiwen.com/subject/sfaqoxtx.html