流程 建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首先裝 Brother 印表機驅動程式 筆者的使用環境是 Linux 的 Debian 10,印表機使用 Brother MFC-J2310 。 Brother 官方驅動: https://support.brother.com/g/b/downloadlist.aspx?c=tw&lang=zh&prod=mfcj2310_eu_as&os=128&flang=English 在這邊選 deb 安裝,如果是 rpm 套件的就選 rpm 。 問題 1 列印出來的字有方塊 用 Libre office 列印文件後發現字有方塊的問題。 解決方法:因文件中的字型,在 Linux 上沒有,所以列印出來會有方塊。將文件中的字改成本機提供的字型,像 UMing TW 或UKai(楷體) 的也可以。 問題 2 發現不能影印多張
7/12/2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up