Python
文章平均质量分 61
yin_bill_wang
热爱IP网络技术,Python
展开
-
HOWTO django + celery + rabbitmq simple setup for testing purpose
This setup is simply used for testing purpose and using the official First Steps with Celery and First Steps with Django as reference.InstallationStep1. Install EPEL repositoryUsing yum search epel to原创 2015-08-14 22:32:08 · 1169 阅读 · 0 评论 -
[Django]Solve "No module named _sqlite3" when deploying django in CentOS
Problem occurs under the following setup: - CentOS 7 - Python 2.7.10 - Django 1.8.2When using python manage.py runserver in terminal or entering import sqlite3 in the interpreter shell, the followin原创 2015-07-17 22:06:16 · 1213 阅读 · 0 评论 -
[Python]Decorators
Decorators are very hard to understand at the beginning. There is an article about decorators, which helps me establishing a basic understanding about how decorators work in Python. http://simeonfrank原创 2015-07-18 17:14:31 · 594 阅读 · 0 评论 -
[Django] use django modules in standalone python script
This post only serves as a reminder of how to use django modules, such as django.template in a standalone python script.Here is the link from official site.原创 2016-07-15 16:14:14 · 561 阅读 · 0 评论 -
[Python] python-ldap installation and usage notes
Installationpython-ldap installation is very simple. On CentOS 7, you just need to# install openldap-develyum install openldap-devel# then install python-ldap via pippip install python-ldapUsageTo us原创 2017-07-12 12:16:41 · 825 阅读 · 0 评论 -
[Python]Attempted relative import in non-package
Python relative import is a topic that bugs me for a long time. Today, I came across these two articles which helps me to understand the topic better.原创 2017-06-07 13:43:47 · 2532 阅读 · 0 评论 -
[Python] Paramiko 初探
Paramiko• Paramiko是对ssh2协议的实现,不仅仅提供远程shell的安全接入功能,还可以为其他远程服务建立安全的隧道(SFTP) • 自身完全由python实现,但是依赖于第三方的C wrapper提供底层的加密功能当我们使用paramiko作为client与服务器进行连接时,有以下步骤: 1. 定义Transport 连接的远端socket 2. 协商...原创 2018-05-17 13:47:13 · 1459 阅读 · 0 评论