Tzu-ping Chung
Tzu-ping Chung
* [x] 升到 Django 2.0 * [ ] Best practices * [x] Pipenv 管理專案套件 * [x] Python Dotenv 管理環境變數 (#28) * [ ] Pytest 單元測試 (和它的一堆插件與使用技巧,例如 model mocking) * [...
Fat model and mangers, forms when suitable, thin views, trivial templates. 節錄一些 Gitter 對話 --- 壞範例: ``` python from django.db import models class Restaurant(models.Model): is_fastfood = models.BooleanField() average_price = models.IntegerField()...
https://github.com/jpadilla/django-dotenv Avoid setting environ directly (in either `~/.bashrc` or `venv/bin/activate`).
An improved version of database-backed wishlist for authenticated users. Also see #59.
在處理 Microsoft/vscode-python#496 時發現中文界並沒有普遍被接受的刪節號用法。或許應該解釋刪節號有自己的字元,不要使用三個句點 `...` 甚至有人會用 `。。。`。 台灣標準規範刪節號應居格中,一格三點,共兩格六點。在 Unicode 定義中,由於一般字型的刪節號(U+2026 horizontal ellipsis)採用西式標準置底,許多軟體、文本改用 U+22EF midline horizontal ellipsis,如 Apple 所有軟體均使用此字元,但亦有聲音認為此為錯誤用法,應使用 U+2026。另外由於六點佔的空間略大,許多軟體只使用一格三點,以維持選單排版緊湊。由於目前沒有普遍被接受的使用慣例,我個人對於應使用一或兩個,以及應該使用哪個字元並沒有特別意見(或許可以在爭議部分建議個人偏好)。
Close #25090. I wonder if there are any other views that would benefit from this custom ordering logic.
See #25604. I feel this is a better syntax than importing XComArg?
Previously we excluded all mapped kwargs from being rendered, which cause issues for fields that are not actually rendered during expansion (i.e. those that are literals). This new implementation adds...
The *Working with Python 3* section mentions you should use `python3` to launch the Python 3 interpreter, which does not actually work. The Windows distribution provides only `python.exe` for all...