Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Djangoアプリの実践的設計手法

8,923 views

Published on

Published in: Technology
  • Dating direct: ❶❶❶ http://bit.ly/39pMlLF ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating for everyone is here: ❤❤❤ http://bit.ly/39pMlLF ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Djangoアプリの実践的設計手法

  1. 1. Django アプリの実践的設計手法 チーム開発/保守しやすいアプリケーションの設計
  2. 2. <ul><li>アプリの構成を覚えよう
  3. 3. アプリを細かく分けよう
  4. 4. アプリは API を作ろう </li></ul>
  5. 5. そもそも Django アプリは何?
  6. 6. models.py のある Python モジュール 以上
  7. 7. Django アプリの構成 <ul><li>アプリのベースモジュール </li><ul><li>__init__.py – モジュールベース
  8. 8. admin.py – Django 管理画面の設定
  9. 9. models.py – Django モデルの定義
  10. 10. views.py – Django ビューの定義
  11. 11. urls.py – URL マッピング
  12. 12. tests.py - 自動テスト </li></ul></ul>
  13. 13. Django アプリの構成 <ul><li>アプリの任意モジュール </li><ul><li>forms.py – フォームクラスなどの定義
  14. 14. context_processors.py – テンプレートコンテキストプロセッサー
  15. 15. middleware.py – Django ミドルウエア </li></ul></ul>
  16. 16. Django アプリの構成 <ul><li>他のの任意モジュール </li><ul><li>templatetags/ - テンプレートタグの定義
  17. 17. management/ - SQL などの管理系 </li><ul><li>commands/ - Django コマンド定義 </li></ul><li>fixtures/ - フィックスチャー </li></ul></ul>
  18. 18. アプリの機能の範囲 <ul><li>昔話 </li><ul><li>巨大な core アプリ
  19. 19. James Bennett さん , Reusable Apps に感激
  20. 20. 今頃、 22 アプリになっている </li></ul></ul>
  21. 21. アプリの機能の範囲 <ul><li>Reusable Apps のポイント </li><ul><li>アプリを細かく分ける </li><ul><li>会員と会員登録と会員 プロフィール、 3 つとも 別アプリで実装 </li></ul><li>アプリが 20 個以上あるが おかしくない </li></ul></ul>
  22. 22. でも、 INSTALLED_APPS が長くなるじゃん!
  23. 23. どうでもいい!
  24. 24. アプリの機能の範囲 <ul><li>まじで、 James Bennett さんの発表を見てください!
  25. 25. 英語だけど ... </li></ul>
  26. 26. アプリの機能を API で提供 <ul><li>モデルのクエリを直接使わなくで、 API を提供 ( 私は api.py を作る )
  27. 27. クラスや関数
  28. 28. モデルメソッド
  29. 29. デコレーター
  30. 30. ミドルウエア
  31. 31. シグナルを提供 </li></ul>
  32. 32. 質問 [email_address] @IanMLewis http://www.ianlewis.org/

×