Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial 2.0 #33

Open
3 of 13 tasks
uranusjr opened this issue Jun 20, 2017 · 0 comments
Open
3 of 13 tasks

Tutorial 2.0 #33

uranusjr opened this issue Jun 20, 2017 · 0 comments

Comments

@uranusjr
Copy link
Owner

uranusjr commented Jun 20, 2017

  • 升到 Django 2.0
  • Best practices
    • Pipenv 管理專案套件
    • Python Dotenv 管理環境變數 (Adopt django-dotenv #28)
    • Pytest 單元測試 (和它的一堆插件與使用技巧,例如 model mocking)
  • 介紹一些 Model 與 Manager 的使用策略 (介紹一些 Model 與 Manager 的使用策略 #24)
  • 介紹 {% include %} tag (介紹 {% include %} tag #17)
  • 2017 年的 JavaScript solution 整合
    • 用 Webpack + Vue 當例子,但可以換成你自己想要的,重點是概念
  • 有沒有其他的 API framework 選擇啊?實在不想用 Django REST Framework
    • 要不直接砍了那章,單純教怎麼手刻 API views 算了
      • Generic views
      • 自選 validation framework (Pydantic 很酷)
    • 如果你想要的是 SPA + API backend,那就不要用 Django
  • Flexible Django
    • 解構 Django,讓你的專案不用 (完全) 遵循 Django 的規則
    • 最低限的 Django 專案 (拿掉所有不必要的東西),再慢慢加回去,按你的想法規劃架構
    • 在非 Django 專案裡使用 Django 元件 (用 settings.configure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant