Django开发中有用的package

django-decouple

  • https://pypi.python.org/pypi/python-decouple/
  • 主要功能

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

  • 安装:pip install python-decouple

dj-database-url

  • https://pypi.python.org/pypi/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

  • https://pypi.python.org/pypi/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)