Django


1687 浏览 5 years, 4 months

2.1 django packages

版权声明: 转载请注明出处 http://www.codingsoho.com/

django packages

Django Packages | django官网主页 | django开发法文档

awesome-django

component

py 是源文件
pyc是源文件编译后的文件
pyo是源文件优化编译后的文件
pyd是其他语言写的python库,Python Dynamic Module

egg包
setup.py:setup.py其实是python工具包distutils的配置文件,setuptools就是基于distutils来做的。

ecommerce

The State of eCommerce in Django 分析

类别 pypi github documentation 说明
ecommerce django-oscar django-oscar djangopackages <br> django-oscar
ecommerce cartridge cartridge

CMS

Django CMS Apps Comparison Django CMS Apps的比较

CMS 的意思是 Content Management System 内容管理系统,一般拿就可以使用,不会编程也能做出网站来,还可以在原来的基础上再次开发,减少工作量,这里列举了一些出名的 CMS:

类别 pypi github documentation 说明
CMS django-cms django-cms djangopackages <br> readthedocs <br> django-cms.org The easy-to-use and developer-friendly CMS. <br> 这个不是为初学者开发的,想在基础上开发需要对Django比较了解才行,是一个基本的框架。 <br> django + django-cms 开发实战-django-cms插件开发
mezzanine mezzanine mezzanine A content management platform built using the Django framework. <br> 简单易用,自带Blog和用户注册系统,拿来就可以用
django-blog-zinnia django-blog-zinnia django-blog-zinnia djangopackages
Opps Opps opps Opps A content management platform built for large portals.
wagtail wagtail wagtail wagtail A new Django content management system.
django-fiber django-fiber django-fiber Django Fiber, a simple, user-friendly CMS for all your Django projects

PHP wordpress

github 搭建一个免费的,无限流量的Blog----github Pages和Jekyll入门

博客 blog

论坛 forum

Django Forum Apps Comparison

类别 pypi github documentation 说明
论坛 LBForum LBForum <br> lbforum-site LBForum更新Django1.10支持 Demo

Admin 扩展

django-grapplli,它主要就是修改了django自动后台的界面,另外就是django-filebrowser,它其实是和grapplli集成的,主要用来在后台管理静态文件。

参考

分类

类别 pypi github documentation 说明
二维码 qrcode python-qrcode 包括二维码的生成和解析
分页 django-pagination django-pagination 一组翻页相关的utils,包括用于实现翻页的tag等。 <br> [R] [Django 分页插件:django-pagination](http://blog.csdn.net/l_courser/article/details/7038859) <br> ecommerce2
分页 django-el-pagination django-el-pagination readthedocs
注册 django-registration django-registration 注册功能,支持帐户的邮件激活
注册 django-registration-redux django-registration-redux ecommerce2,因为长久不更新,逐渐被django-allauth代替
注册 django-allauth django-allauth Stack Overflow<br>readthedocs<br>intenct.nl 推荐使用
注册 django-social-auth django-social-auth 最后一次更新2015,依赖python-social-auth
注册 python-social-auth python-social-auth readthedocs 最后一次更新2017 <br> Django使用Social-Auth实现微信第三方网站扫码登录的方法介绍
注册 django_mobile_auth django_mobile_auth 支持电话号码,但是并没有把电话号码作为登录项; 参考了一些他的实现
注册 django-phone-login django-phone-login 支持token的生成和授权,import了它的库,仅仅使用了它的token类和创建功能,交互和授权感觉有点问题
授权 django-oauth-toolkit django-oauth-toolkit readthedocs
授权 django-user-verification django-user-verification
文件上传 jQuery-File-Upload github.io
文件上传 django-jquery-file-upload
搜索 django-filter django-filter readthedocs Django-filter is a reusable Django application for allowing users to filter querysets dynamically.
评论 django-threadedcomments django-threadedcomments 评论组件,可以给任何的models增加评论功能
评论 django-mptt django-mptt github.io 用于生成树形列表的app。如果你认为它会自动给你生成一个完整的树,那你就错了,她只是一组工具
组件 django-phonenumber-field django-phonenumber-field depend on package phonenumbers
组件 phonenumbers python-phonenumbers
组件 django-crispy-forms
短信 django-sendsms django-sendsms
编辑器 django-ckeditor django-ckeditor
图片 Pillow Pillow https://python-pillow.org
头像 Django-avatar Django-avatar readthedocs Django-avatar is a reusable application for handling user avatars. It has the ability to default to Gravatar if no avatar is found for a certain user. Django-avatar automatically generates thumbnails and stores them to your default file storage backend for retrieval later. 为用户增加设置个人头像的功能。支持 http://www.gravatar.com/ 和用户上传头像。
头像 easy-thumbnails easy-thumbnails readthedocs
头像 django-simple-avatar django-simple-avatar
djangorestframework djangorestframework django-rest-framework homepage

https://djangopackages.org/grids/g/authentication/ This is a grid of all packages for user authentication.

简易跟踪

类别 pypi 说明
标签 django-tagging 为站点增加tagging功能
投票 django-voting 投票功能
ajx django-ajax-validation 使用ajax方式对表单进行校验,需要jquery的支持。这个组件只能校验,如果需要增加ajax提交表单的功能,还需要自己手动做些修改。
消息 django-messages 实现站内消息的功能。目前该组件的功能的功能还比较弱,虽然作者在进行重构,但似乎进展缓慢。如果有需要我可能会自行对该组件进行一些增强
消息 django-notification 消息分发组件,用来实现类似好友最新动态的功能
公告 django-announcements 发送站内公告,该公告只显示一次。可以设置公共的发送对象(所有人,指定用户,登陆用户)。
dbtemplates django-dbtemplates 将django的template保存在数据库,并通过cache来加速template的加载。这样可以很方便的通过admin来编辑template。我想这东西应当可以用来实现一些简单的CMS功能,不过似乎用处不是太大。
博客 django-microblogging 类似Twitter的微型博客
admin django-filebrowser django-admin的一个扩展,可以直接通过admin对服务器上的文件进行管理。我没用过这东西,不过看介绍,感觉非常棒
书签 django-bookmarks 书签管理组件
邮件 django-mailer 邮件发送的增强组件,会在邮件发送失败时记录失败日志
邮件 django-email-confirmation 在用户设置邮件地址后,给用户的邮箱发送一封确认邮件。用户点击邮件里的link来确认邮件地址的有效性
社交 django-friends 朋友组件,支持邀请用户成为好友等
社交 django-locations 似乎是一个基于地区的社交网络,需要yaohoo map的支持
安装 bower https://bower.io/
request django-tagging
支付 braintree used in ecommerce order model readthedocs
验证码 captcha A captcha library that generates audio and image CAPTCHAs.
验证码 django-simple-captcha A very simple, yet powerful, Django captcha application
时间 python-dateutil readthedocs Extensions to the standard Python datetime module. <br> The dateutil module provides powerful extensions to the datetime module available in the Python standard library.
解析 beautifulsoup4 Beautiful Soup sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree

依赖库

类别 pypi 说明
数据库 psycopg2 Psycopg is the most popular PostgreSQL database adapter for the Python programming language.
数据库 PyYaml YAML parser and emitter for Python <br> YAML is a data serialization format designed for human readability and interaction with scripting languages. PyYAML is a YAML parser and emitter for Python. <br> PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension API, and sensible error messages. PyYAML supports standard YAML tags and provides Python-specific tags that allow to represent an arbitrary Python object. <br> PyYAML is applicable for a broad range of tasks from complex configuration files to object serialization and persistance. <br> http://pyyaml.org/wiki/PyYAML
数据库 sqlcmd A cross-platform, cross-database SQL command line tool <br> sqlcmd is a SQL command line tool, similar in concept to tools like Oracle’s SQL_Plus, the PostgreSQL psql command, and MySQL’s mysql tool. gibthub
数据库 dj-database-url 一个Django配置工具, This simple Django utility allows you to utilize the 12factor inspired DATABASE_URL environment variable to configure your Django application.
WSGI werkzeug The Swiss Army knife of Python web development <br> Werkzeug started as simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility modules. It includes a powerful debugger, full featured request and response objects, HTTP utilities to handle entity tags, cache control headers, HTTP dates, cookie handling, file uploads, a powerful URL routing system and a bunch of community contributed addon modules. <br> Werkzeug is unicode aware and doesn’t enforce a specific template engine, database adapter or anything else. It doesn’t even enforce a specific way of handling requests and leaves all that up to the developer. It’s most useful for end user applications which should work on as many server environments as possible (such as blogs, wikis, bulletin boards, etc.). <br> http://werkzeug.pocoo.org/
WSGI wsgiref WSGI (PEP 333) Reference Library
WSGI gunicorn WSGI服务器, Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX. http://gunicorn.org/
静态文件 dj-static 一个Django静态文件服务器, This is a simple Django middleware utility that allows you to properly serve static assets from production with a WSGI server like Gunicorn.
静态文件 static Serve static or templated content via WSGI or stand-alone
静态文件 whitenoise Radically simplified static file serving for WSGI applications
基本库 argparse Python command-line parsing library github
基本库 wheel A built-package format for Python.
基本库 cffi Foreign Function Interface for Python calling C code. <br> C Foreign Function Interface for Python. Interact with almost any C code from Python, based on C-like declarations that you can often copy-paste from header files or documentation. readthedocs
基本库 prettytable A simple Python library for easily displaying tabular data in a visually appealing ASCII table format. <br> PrettyTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables. It was inspired by the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for selection of which columns are to be printed, independent alignment of columns (left or right justified or centred) and printing of “sub-tables” by specifying a row range.
基本库 enum Robust enumerated type support in Python.
基本库 grizzled-python The Grizzled Utility Library is a general-purpose Python library with a variety of different modules and packages. It’s roughly organized into subpackages that group different kinds of utility functions and classes. <br> http://software.clapper.org/grizzled-python/

django-toolbelt

它由以下几部分组成

django
gunicorn
dj-database-url
dj-static

Flask

Flask==0.11.1
click==6.6
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
Werkzeug==0.11.11

sae-python-dev

sae

argparse
prettytable
enum
grizzled
enum
yaml
sqlcmd
werkzeug

Test

Scripts\
cloudsql.py
dev_server.py
saecloud
saecloud.bat
sqlcmd.exe

  • django-robots 通过django的admin来管理robots.txt。不过我觉得robots.txt这东西为什么还需要用admin来管理,还不如直接编辑来的方便。
  • django-extensions 一些全局的 management extensions。其中包括create_app的增强,使用werkzeug做开发服务器等功能。
  • django-uni-form 以div方式渲染forms
  • django-timezones 时区设置组件,允许用户设置自己所在的时区。
  • django-oembed 方面媒体(视频等)内容嵌入,自动将媒体的连接转换成正确的html代码。
  • django-swaps 易物平台,比如用PSP换NDS啥的。
  • django-wikiapp wiki组件,支持多种wiki语法。不过目前该组件的功能还是比较简单,比如不支持附件。
  • django-photologue 图片管理,上传图片,缩略图显示等。。
  • goflow Django上的一个工作流引擎,设计灵感来源于OpenFlow。没用过这东西,对工作流也不太了解,所以也不知道这东西好不好。不过这似乎是django上唯一的一个工作流app。
  • django-picklefield : provides an implementation of a pickled object field. Such fields can contain any picklable objects.
  • django-constance : A Django app for storing dynamic settings in pluggable backends (Redis and Django model backend built in) with an integration with the Django admin app.
  • postmarkup : BBCode to (X)HTML rendering engine. Converts BBCode (http://en.wikipedia.org/wiki/BBCode) in to HTML and XHTML snippets. Always outputs valid XHTML, even from badly nested BBCode.

牛人整理的Django资源大全(转载)

MySQL

https://pypi.python.org/pypi/MySQL-python/1.2.4

pip安装时报错

Command python setup.py egg_info failed with error code 1

参考stackoverflow,应该是这个版本有点问题,建议安装1.2.5

改安装 pip install MySQL-python==1.2.5

新的报错

Microsoft Visual C++ 9.0 is required < Unable to find vcvarsall.bat 参考HERE,原因是MySQL会引用pyd库,需要C编译器

根据它的建议,安装Microsoft Visual C++ Compiler for Python 2.7

但是有了新的报错

_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h'

参考HERE,应该是Window下面它还要安装一些驱动,通过pip方式可能不行。

还是老老实实通过Window MSI安装好了之后,拷到项目里来吧

south (obsolete)

https://pypi.python.org/pypi/South/ python setup.py install