原创 SecureCRT內讓npm進程後臺執行不受關閉終端影響

  1.nohup npm start &    (啓動你的項目) 2. 回車 3. jobs       (查看後端運行的工作) 4. disown  -h %1    5. 關閉SecureCRT的session 如果是多個nodej

原创 Saleor ran into an unexpected problem

這個是啓動saleor-dashboard之後的報錯, 原因是saleor(python api)沒有啓動 python manage.py runserver即可 如果還是不行,可以參考: https://github.com/miru

原创 Saleor出現 "Make sure you've added storefront address to ALLOWED_CLIENT_HOSTS "

完整報錯信息如下: -------------------------------------輸出一些調試信息----------------------------------- DEBUG= False ENABLE_ACCOUNT_

原创 Is the server running on host "localhost" (::1) and accepting         TCP/IP connections on port 5

完整報錯如下: django.db.utils.OperationalError: could not connect to server: Connection refused         Is the server running

原创 saleor設置braintree支付方式

打開[1],設置爲yes 點進去右下角需要三個參數,參數來自[2],複製進去後點擊save保存   [2]註冊個賬號拿到下面三個參數,   測試用的卡號來自[3],下面的Credit Card就是剛才激活的BrainTree.  

原创 python中def函數右側有個->的含義

在有->的情況下: def f(ham: str, eggs: str = 'eggs') -> str: print("Annotations:", f.__annotations__) print("Argument

原创 django的頁面報錯中出現xxxx.html (Skipped)

完整報錯如下: Using engine django: django.template.loaders.filesystem.Loader: /home/appleyuchi/桌面/Python新手/PythonNew/第十三章的情況上

原创 django-oscar的訂單狀態總是Pending

使用的時候發現及時支付完賬單, 訂單仍然是Pending的狀態,這個是怎麼回事呢?   127.0.0.1:8000/dashboard中選擇: Fulfilment->order 然後選擇下面的change status 總共有4個狀態

原创 django-oscar的物流狀態修改以及分析源碼解決報錯:The new status 'xxx' is not valid for this order

先說物流狀態的修改: django-oscar自帶的物流狀態是四個: OSCAR_INITIAL_ORDER_STATUS = 'Pending' OSCAR_INITIAL_LINE_STATUS = 'Pending' OSCAR_O

原创 django-oscar數據庫表格含義(持續更新)

先寫關於order相關的表格 order開頭的表格總共16張: order_billingaddress:信用卡登記地址(沙箱測試不會影響到這個表格) order_communicationevent       order_line o

原创 GraphQL報錯:"error": "NetworkError when attempting to fetch resource."

{   "error": "NetworkError when attempting to fetch resource." }   解決方案: 檢查你的python manage.py runserver是不是斷開了

原创 psql: FATAL: role “appleyuchi” does not exist與修改默認密碼

$ psql 報錯如下: psql: FATAL: role “appleyuchi” does not exist   使用: sudo -s -u postgres 就會把當前用戶切換成postgres postgres=# ALTE

原创 ImportError: cannot import name 'six' from 'django.utils'

django的版本太新了. 解決方案如下: pip install django==2.0.2

原创 django.db.utils.OperationalError: no such column: catalogue_product.is_public

報錯來自django-oscar從低版本向高版本遷移的時候發生的. 完整報錯如下: Traceback (most recent call last):   File "/home/appleyuchi/.virtualenvs/pyth

原创 djagno-oscar的頁面出現Error 10605 - Receiving country does not support the transaction currency.

  修改幣種的路徑是: http://127.0.0.1:8000/admin/partner/stockrecord/1/change/