-
Notifications
You must be signed in to change notification settings - Fork 9
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
[2주차] Django MTV 정복기 #14
Comments
Beomtae
added a commit
to Beomtae/Backend
that referenced
this issue
May 3, 2023
Open
hyeonda02
added a commit
to hyeonda02/Backend
that referenced
this issue
May 3, 2023
Open
0hyujin
added a commit
to 0hyujin/Backend
that referenced
this issue
May 3, 2023
ljy6712
added a commit
to ljy6712/Backend
that referenced
this issue
May 3, 2023
Open
xogk1128
added a commit
to xogk1128/Backend
that referenced
this issue
May 4, 2023
xogk1128
added a commit
to xogk1128/Backend
that referenced
this issue
May 4, 2023
Closed
drgnseok
added a commit
to drgnseok/Backend
that referenced
this issue
May 4, 2023
drgnseok
added a commit
to drgnseok/Backend
that referenced
this issue
May 4, 2023
xogk1128
added a commit
to xogk1128/Backend
that referenced
this issue
May 4, 2023
Closed
xogk1128
added a commit
to xogk1128/Backend
that referenced
this issue
May 4, 2023
xogk1128
added a commit
to xogk1128/Backend
that referenced
this issue
May 4, 2023
Open
Closed
yaerankim
added a commit
to yaerankim/Backend
that referenced
this issue
May 4, 2023
yaerankim
added a commit
to yaerankim/Backend
that referenced
this issue
May 4, 2023
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
*기한 내 미제출은 1OUT 대상으로, 3OUT이 되면 동아리 활동이 어려운 점 잊지 마세요 !!
어려우면 포기하지말고 멘토에게 적극적으로 질문 해주길 바랍니다 !!
[2주차] Django MTV 정복기
기한: 05/04 (목) 23:59까지
과제 설명
2주차 세션 내용을 토대로 나만의 웹사이트 제작!
조건
Tip
과제 예시
127.0.0.1:8000
127.0.0.1:8000/about
127.0.0.1:8000/services
127.0.0.1:8000/portfolio
###127.0.0.1:8000/contact
Tempalte 언어
{% block content %}, {% endblock %} 태그
템플릿 상속: 중복되는 html 파일 내용을 반복해서 작성해야하는 번거로움을 줄여줍니다.
기본 HTML
상단의 이미지와 같이 {% block content %}, {% endblock %} 태그를 사용
해당 영역에 상속받은 HTML의 코드가 삽입됩니다.
상속받을 HTML
{% extends '<상속 받을 html>' %}: 상속 받을 HTML 지정, 최상단에 작성.
{% block content %}, {% endblock %}: 상속 받을 HTML에 넣을 코드 블록
navigation Bar url 지정
{% url '<url 이름(별칭)'> %}
<url 이름(별칭)>: urls.py에서 name 속성을 지정된 문자열에 해당하는 값
href 속성 값으로 url 지정해주면 됩니다.
HTML
urls.py
The text was updated successfully, but these errors were encountered: