Django开发中有用的package

2020-01-28  本文已影响0人  石头车钥匙

django-decouple

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

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.

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+.

上一篇下一篇

猜你喜欢

热点阅读