原创 python生成依賴庫的列表文件 requirements.txt
在虛擬環境中運行 ,會在執行命令的目錄下生成requirements.txt pip freeze > requirements.txt
原创 使用flex佈局平分寬度
css3 父元素 display:flex; 子元素給定flex佔比 1的時候子元素平分 .color_container { width: 100%; height: 22px; display: f
原创 ubuntu服務器上安裝uwsgi(系統全局和虛擬環境都安裝uwsgi)
Step1# 首先在電腦上安裝自己需要的python版本 及創建虛擬環境 安裝教程。 https://blog.csdn.net/weixin_38570967/article/details/81811415 Step2# sour
原创 ubuntu查看哪些端口正在工作
本地執行 sudo netstat -ntlp 從遠程可以 ‘telnet ip 端口查看是否能連接
原创 Apache Shiro結構
Apache Shiro結構 Shiro的設計目的是通過直觀和易用的方式來簡化‘保護’應用。 shiro的核心模型是應用安全方面是大多數人認爲的–>與應用中交互的某個人(某個東西)的上下文。 應用常常基於客戶的故事設計,開發者開發根據用
原创 django DetailVeiw
from django.utils import timezone from django.views.generic import DetailView from books.models import Author class Au
原创 Apache Shiro術語
Apache Shiro術語 花兩分鐘時間去讀這篇文章並且理解這些重要的術語 。這些術語和概念都會出現在後面的文檔和api中,理解了這些可以非常容日的理解並保護你的應用程序。 安全框架因爲這些術語會變得撲朔迷離,我們通過闡明這些術語讓生
原创 python從requirements.txt中安裝依賴庫
首先激活你的虛擬環境 進入到你 requirements.txt 所在的目錄 執行 pip install -r requirements.txt
原创 django項目部署到ubuntu服務器後無法訪問
step1# 設置settings.py ALLOWED_HOSTS = ['*'] step2# 啓動時 使用 python manage.py runserver 0.0.0.0:80啓動服務 0.0.0.0表示所有ip都
原创 ubuntu中安裝nginx
step1 # sudo apt-get update step2# sudo apt-get install nginx step3# 啓動 停用nginx 等常用操作 查看 點擊查看
原创 django ListView的使用 ListView中獲取url中的參數值
view.py from django.views.generic import ListView,DetailView from xxxx.models import Model_Name class Colortag_view(Lis