原创 Django models migration

build_info/models.py from django.db import models class BuildStatus(models.Model): build_name = models.CharField(m

原创 Jenkins 插件

Dashboard View: 自定義dashboard,來展示自己感興趣的job。包括Job list,統計數據。  Wall Display Master Project: 結合Dashboard view插件,更好的展示監控

原创 Python3 操作HTML

第一種方式: 用字符串拼接html內容: mail_subject = "Test mail subject" mail_addr = "xxxx.qq.com" html_content = """<!DOCTYPE html>

原创 Django LDAP登錄

在settings.py中添加mysql數據庫信息: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME'

原创 LDAP基礎:6:使用ldapsearch進行數據查詢

原文出處:https://blog.csdn.net/liumiaocn/article/details/83990918 操作方式 執行場所 對LDAP進行操作,場所不限,LDAP服務器上進行操作,也可以在可以連接LDAP服務的客戶

原创 django windows ldap安裝配置

windows上安裝openldap: https://userbooster.de/download/openldap-for-windows.aspx  windows上安裝python ldap模塊: pip3 install py

原创 django bootstrap css js 文件導入

Django Settings:  在settings中定義STATIC_URL、STATICFILES_DIRS。 默認Django會在每個app下的static/app查找靜態文件,如果加額外的路徑尋找則在STATICFILES_D

原创 xshell 公鑰登錄

新建會話 --》連接 --》用戶身份驗證  方法選擇 Public Key,輸入用戶名 導入密鑰                                                     將公鑰內容拷貝追加到此服務器~/.s

原创 pycharm 啓動django項目

方法一: 點擊Tools-->Run manage.py Task...                                                                                   

原创 openstack

創建heat stack: $ git clone https://git.openstack.org/openstack/heat-templates $ 設置默認的flavor,image,admin_pass,使用如下命令指定連接

原创 測試結構分類總結

                                                                         軟件測試                                          

原创 Selenium

一個用於Web應用程序測試的工具。Selenium測試直接運行在瀏覽器中,就像真正的用戶在操作一樣。支持IE Chrome Firefox等。 工作原理: 啓動腳本的時候,webdriver會啓動一個線程來啓動一個瀏覽器,瀏覽器可以是帶用

原创 安裝Putty

下載 https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html 雙擊putty.exe安裝 設置外觀:https://github.com/altercation/sol

原创 安裝python模塊

非root用戶安裝python module “python-jenkins”到某個本地python_libs目錄 $ cd ~/python_libs/bin $ pip3 install --user  python-jenkins

原创 Linux 命令

find: 舉例:find -L /build/path/ -mindepth 2 -maxdepth 5 -name filename -L 包含/build/path下面的軟連接子目錄 -mindepth 2 從第一層子目錄開始查