Django开发中有用的package

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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容