makeBCT

#AI #OpenAI #Chatbot #Cloud #WordPress

Building a Django Web App – Django III > Finishing touches

Django III에서 다루게 될 내용은 다음과 같습니다.

4-1 Django custom user profile

4-2 User-submitted content

4-3 Finishing touches


4-3 Finishing touches

(1) Creating a footer

footer.html 파일 생성

다음과 같이 파일을 생성합니다.

mysite > main > templates > main > includes > (New File) footer.html

 

footer.html 파일 편집

다음과 같이 파일을 편집합니다.

mysite > main > templates > main > includes > footer.html

 

Social media 링크를 footer.html 파일에 추가

다음 코드를 추가합니다.

mysite > main > templates > main > includes > footer.html

 

affiliate disclosure 포함시키기

다음 코드를 추가합니다.

mysite > main > templates > main > includes > footer.html

 

Copyright용 컨테이너 영역 추가

다음 코드를 추가합니다.

mysite > main > templates > main > includes > footer.html

 

header.html에서 footer.html 포함시키기

다음 코드를 추가합니다.

mysite > main > templates > main > header.html

 

브라우저에서 확인해 봅니다.

 

(2) Using Bootstrap scrollspy

Id 속성을 footer.html에 추가

mysite > main > templates > main > includes > footer.html

 

Contact scrollspy를 navbar.html에 추가

다음 코드를 추가합니다.

mysite > main > templates > main > includes > navbar.html

 

브라우저에서 확인해 봅니다.

 

(3) Checking device compatibility

F12 개발자 도구에서 확인해 봅니다.

 

(4) Using media queries

Custom class 속성을 CTA 메시지 영역에 추가

다음 코드를 추가합니다.

mysite > main > templates > main > home.html

 

모바일 대응을 위한 CTA 메시지 크기 조정

다음 코드를 추가합니다.

mysite > main > templates > main > home.html

 

브라우저에서 확인해 봅니다.

 

Article 제목 크기 수정을 위한 custom class 속성 추가

다음 코드를 추가합니다.

mysite > main > templates > main > article.html

 

모바일 대응을 위한 article 제목 크기 조정

다음 코드를 추가합니다.

mysite > main > templates > main > article.html

 

브라우저에서 확인해 봅니다.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

인기 글

Ubuntu 22.04 LTS에 Python 3.8 or 3.9 설치 방법
서버 : Vultr 클라우드OS: Ubuntu 22.04 LTS사용자 계정 생성하여 설치 진행함1. Start with the system updatesudo apt update...
오라클 클라우드 OCI 가입 드디어 성공 했습니다 (상세 후기)
2023년 2월 16일에 ‘오라클 클라우드 지급 검증 실패 글‘을 남긴 적이 있습니다.그 때 검색을 통해 해결 방법을 찾아 보았고, 당시 성공했던 분들의...
WSL2/Ubuntu 22.04 LTS에 Anaconda 설치 
WSL2/Ubuntu 환경에서 Python 버전별로 가상환경을 만드는 방법 중 그나마 Anaconda 방법이 좋은 것 같네요. 설치 방법은 간단합니다.1. apt update사용자...
사용자 작성 모듈 import 시 에러)(ModuleNotFoundError: No module named
파이썬 모듈을 만들고 테스트 할 때 ModuleNotFoundError: No module named 에러가 발생한 경우원인파이썬은 모듈을 불러올 때 모듈 설치 경로와 자신의...
Permission denied (publickey) 해결 방법
Plesk에서 생성된 system user로 ftp 접속 시 다음과 같은 에러 메시지가 발생하면서 접속이 되지 않습니다.상태: 152.67.193.32:49152에 연결... 응답: fzSftp...

BCT Ai Chatbot

답변을 준비중입니다 . . .