流程 建model, 自訂 migration 才能讓 raw data import 到 model database。 建立 model Manager() import model ,建立 view call manager 的 function,再 return response。 Model CASCADE: 刪除 model 時,會跟著關聯的model一起刪除 related_name: 在 foreign key 設定 related_name 可以讓 models 使用, User.objects.get(id=1).purchaehistory.all() 為什麼 DateTimefield 設定 blank=True, null=True?
9/18/2021申請 heroku 帳號 安裝 git 建立 requirement.txt 建立 Procfile 設定檔 建立 production_settings.py 部署 heroku 參考文件 申請 heroku 帳號及下載 heroku 到 https://www.heroku.com/ 註冊
9/14/2021wpa_supplicant wpa_supplicant 可以用在 Linux 、 BSD、 MAC OS X、 Windows、 嵌入式系統..等的無線網路連線。 開發環境 Linux Release: Debian Buster 64 bits Kernal Version: 4.19.0-12-amd64 Step1 檢查 wifi 網卡有無啟用 $ sudo dmesg |grep -i wifi
8/26/2021讀不到GRUB 開機時,BIOS 有偵測到硬碟,但是 GRUB 無法執行,所以判定是 GRUB 有問題。 解決方法 用 Live usb 開機 Clonezilla UEFI 開機 用 Live Debian 開機,修改GRUB 做好 Live Debian USB 後,先在 BIOS 設定 UEFI 開機,再插入 USB。
8/23/2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up