Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Djangoチュートリアルハンズオン補足資料

 Djangoチュートリアルハンズオン補足資料

soheiyagi

May 02, 2020
Tweet

More Decks by soheiyagi

Other Decks in Technology

Transcript

  1. %KBOHPϑΥϧμߏ੒ 1SPKFDUϑΥϧμ
 @@JOJU@@QZ
 BTHJQZ
 TFUUJOHTQZ
 VSMTQZ
 XTHJQZ ɹ"QQϑΥϧμ
 ɹNJHSBUJPOT
 ɹ@@JOJU@@QZ


    ɹBENJOQZ
 ɹBQQTQZ
 ɹNPEFMTQZ
 ɹUFTUTQZ
 ɹWJFXTQZ NBOBHFQZ QZUIPONBOBHFQZTUBSUBQQ˔˔ EKBOHPBENJOTUBSUQSPKFDU˔˔ "11ϑΥϧμʹ΋
 VSMTQZΛ௥Ճͨ͠ํ͕࢖͍΍͍͢
  2. VSMTQZͷؔ܎ NZTJUF
 @@JOJU@@QZ
 BTHJQZ
 TFUUJOHTQZ
 VSMTQZ
 XTHJQZ ɹQPMMT
 ɹNJHSBUJPOT
 ɹ@@JOJU@@QZ


    ɹBENJOQZ
 ɹBQQTQZ
 ɹNPEFMTQZ
 ɹUFTUTQZ
 ɹVSMTQZ
 ɹWJFXTQZ NBOBHFQZ from django.contrib import admin from django.urls import path, include urlpatterns = [ path("admin/", admin.site.urls), path(“polls/”, include(“polls.urls")), ] from django.urls import path
 from . import views urlpatterns = [ path("", views.index, name="index" ), ] from django.http import HttpResponse def index(request): return HttpResponse(“Hello world!”) QPMMTVSMTQZ QPMMTWJFXTQZ VSMTQZ
  3. VSMTQZͷؔ܎ ϓϩδΣΫτ
 VSMTQZ QBUI ϓϩδΣΫτ
 VSMTQZ VSM ΞϓϦ
 VSMTQZ QBUI

    ΞϓϦʢQPMMTʣ
 VSMTQZ lBENJOz IUUQBENJO lQPMMTz IUUQQPMMT zz IUUQQPMMT lJOURVFTUJPO@JEz IUUQQPMMT lJOURVFTUJPO@JE SFTVMUTz IUUQQPMMT SFTVUT lJOURVFTUJPO@JE WPUFz IUUQQPMMT WPUF JODMVEF
  4. Πϯϙʔτʹؔ͢Δิ଍ NZTJUF
 @@JOJU@@QZ
 BTHJQZ
 TFUUJOHTQZ
 VSMTQZ
 XTHJQZ ɹQPMMT
 ɹNJHSBUJPOT
 ɹ@@JOJU@@QZ


    ɹBENJOQZ
 ɹBQQTQZ
 ɹNPEFMTQZ
 ɹUFTUTQZ
 ɹVSMTQZ
 ɹWJFXTQZ NBOBHFQZ from django.urls import path from .views import index urlpatterns = [ path("", index, name=“index" ), ] GSPNύοέʔδJNQPSUؔ਺PSΫϥε
 JNQPSUύοέʔδ from django.urls import path from . import views urlpatterns = [ path("", views.index, name=“index" ), ] ಉ݁͡Ռ
  5. Πϯϙʔτʹؔ͢Δิ଍ NZTJUF
 @@JOJU@@QZ
 BTHJQZ
 TFUUJOHTQZ
 VSMTQZ
 XTHJQZ ɹQPMMT
 ɹNJHSBUJPOT
 ɹ@@JOJU@@QZ


    ɹBENJOQZ
 ɹBQQTQZ
 ɹNPEFMTQZ
 ɹUFTUTQZ
 ɹVSMTQZ
 ɹWJFXTQZ NBOBHFQZ from django.urls import path, include from polls.views import hello_world urlpatterns = [ path("", index, name="index" ), ] GSPNύοέʔδJNQPSUؔ਺PSΫϥε
 JNQPSUύοέʔδ from django.urls import path, include from polls import views urlpatterns = [ path("", views.index, name=“index" ), ] ಉ݁͡Ռ
  6. ؔ਺ϕʔεϏϡʔͱΫϥεϕʔεϏϡʔ ؔ਺ϕʔεϕʔεϏϡʔ DMBTT*OEFY7JFX HFOFSJD-JTU7JFX  UFNQMBUF@OBNFQPMMTJOEFYIUNM DPOUFYU@PCKFDU@OBNFMBUFTU@RVFTUJPO@MJTU EFGHFU@RVFSZTFU TFMG 

    SFUVSO2VFTUJPOPCKFDUTPSEFS@CZ QVC@EBUF <> ൚༻ϏϡʔʢHFOFSJDʣΛ࢖͏͜ͱͰίʔυྔগͳ࣮͘૷Մೳ ൚༻Ϗϡʔͷίʔυ΍ཁૉΛ֬ೝ͢Δͷ͸ͪ͜Β͕ศརɹIUUQTDDCWDPVL