pybo/urls.py의 url 매핑경로 문의
from django.urls import path
from . import views
app_name = 'pybo'
urlpatterns = [
path('', views.index, name='index'),
path('
path('answer/create/
-------------------------------------------------------------------
질문 : 점프투장고2-6, 페이지93(03단계)의 urlpatterns의 마지막 줄인
path('answer/create/<int:question_id>/', ~~~~~~~~~~) 에서
<int:question_id>는 html의 question.id가 넘어 온 것이지만
('answer/create/~~~')에서 :
answer는 models.py의 Answer 클레스를 의미합니까 ?
create는 어떤 경로에서 온 것입니까 ?
keumpa51 님 378
2022년 2월 19일 10:23 오후