django-websocket-redis安装配置并支持中文

1.安装redis

$ wget http://download.redis.io/releases/redis-3.0.7.tar.gz
$ tar xzf redis-3.0.7.tar.gz …

Read More

django博客simblog v2.0

重要更新:

  • 更换了全新的模版;
  • 保留了原主题(挺喜欢之前的主题,所以保留了原主题);
  • 使用Class View编写;
  • 对代码格式及性能做了优化;
  • 代码高亮更新问最新版的prettify

待完善功能:

  • 主机性能图形展示;
  • 项目展示;
  • 管理后台;
  • 登录页;
  • 403,404,502,500页面自定义;
  • RSS …

Read More

Django1.8 安装Django-Debug-Toolbar

网上很多资料都是django1.4下的,无法正常显示toolbar。

地址:https://github.com/django-debug-toolbar/django-debug-toolbar

安装

# pip install django-debug-toolbar

设置settings.py

INSTALLED_APPS = (
    'django.contrib.admin',
    'django …

Read More

django 发送html模版渲染邮件

1.settings.py文件中添加配置:

# email config
EMAIL_HOST='smtp.163.com'
EMAIL_HOST_USER='bbaobelief@163.com'
EMAIL_HOST_PASSWORD='123456'
EMAIL_USE_TLS = True

2.发送简单邮件:

from …

Read More

django+Celery+redis异步执行任务

关于celery介绍请自行百度

1.安装Celery

用pip或easy_install安装:

# pip install Celery django-celery celery-with-redis

2.安装redis

# wget http://download.redis.io/releases/redis-3.0.3 …

Read More

Looking for something?

About.Me

img zheng
90后,男,耳机发烧友,古典、新世纪、美剧迷。现就职于某教育公司,任运维开发工程师。
QQ: 773889242 Email: bbaobelief@163.com

小鱼儿

1 | 3

下一页