为您的Django CMS供电的网站集成了单点登录(SSO)、延迟加载、分析等选项。
djangocms-disqus的Python项目详细描述
为您的Django CMS供电的网站集成了单点登录(SSO)、延迟加载、分析等选项。
此项目需要django-connected和django-cmsv3.0或 要正确安装和配置。使用pip安装djangocms-disqus时,也将自动安装django-connected。
快速启动
安装djangocms-disqus:
pip install djangocms-disqus
将djangocms_disqus添加到INSTALLED_APPS:
INSTALLED_APPS = ( ... 'connected_accounts', 'connected_accounts.providers', 'djangocms_disqus', ... )
启用Disqus作为django-connected的提供程序(在https://disqus.com/api/applications/register/注册新应用程序):
CONNECTED_ACCOUNTS_DISQUS_CONSUMER_KEY = '<disqus_secret_key>' CONNECTED_ACCOUNTS_DISQUS_CONSUMER_SECRET = '<disqus_public_key>'
同步数据库(如果使用的是django 1.6.x,则要求south>;=1.0.1):
python manage.py migrate
将DisqusMiddleware添加到MIDDLEWARE_CLASSES:
MIDDLEWARE_CLASSES = ( ... 'djangocms_disqus.middleware.DisqusMiddleware', ... )
您也可以喜欢…
- djangocms表单-https://github.com/mishbahr/djangocms-forms
- djangocms fbcomments-https://github.com/mishbahr/djangocms-fbcomments
- djangocms gmaps-https://github.com/mishbahr/djangocms-gmaps
- djangocms instagram-https://github.com/mishbahr/djangocms-instagram
- djangocms响应包装-https://github.com/mishbahr/djangocms-responsive-wrapper
- djangocms-twitter2-https://github.com/mishbahr/djangocms-twitter2
- djangocms youtube-https://github.com/mishbahr/djangocms-youtube