Programming/Django
-
[Django] Bootstrap5 vscode 적용하기Programming/Django 2022. 8. 31. 12:47
설치 방법은 1. django bootstrap5 설치 2. compiled CSS and JS download 해서 프로젝트에 적용 3. npm 이용한 bootstrap dist 적용 세가지가 있다. 이외의 방법도 있다. 이번 포스팅에서는 1, 2번 내용을 담아봤습니다~ 1. django bootstrap5 설치 (1) pip를 이용하여 설치 python -m pip install django-bootstrap5 (2) setting.py 추가 INSTALLED_APPS = ( # ... 'django_bootstrap5', # ... ) 2. compiled CSS and JS download (1) Bootstrap 공식 사이트에서 Compiled CSS and JS 파일을 download Down..
-
[Django] Bootstrap5 정의 및 적용하기1Programming/Django 2022. 8. 31. 12:36
Bootstrap이란? 트위터에서 사용하는 각종 레이아웃, 버튼, 입력창 등의 디자인을 CSS와 Javascript로 만들어 놓은 것이다. 부트스트랩은 전세계적으로 가장 많이 사용되는 오픈소스 CSS 프레임워크이다. 반응형 CSS 를 제공한다. Bootstrap 적용 방법 외부 스타일시트로 적용(jsDelivr) 소스 다운로드하여 로컬환경에 적용 1. 외부 스타일시트로 적용(jsDelivr) 부트스트랩의 이벤트에 반응하는 구조를 사용하기 위해서는 jQuery를 비롯한 몇몇 자바스크립트 라이브러리가 필요하다. 자바스크립트 라이브러리도 jsdelivr 링크를 통해 사용할 수 있다. integrity, crossorigin 속성은 암호화 데이터를 위한 보안 요소로 추가되었다. Bootstrap Check Po..
-
[Django] postgreSQL 연동Programming/Django 2021. 12. 27. 22:01
Django에서 postgreSQL을 연동하는 방법을 포스팅하겠습니다. SQL shell (psql) 1. DB 생성 CREATE DATABASE [DB Name]; 2. user, password 설정 CREATE USER [user_id] WITH PASSWORD ['password']; password 입력시에 '' (작음 따옴표)를 붙여줘야 합니다. user 생성이 성공하면 "CREATE ROLE"이라는 문구가 나옵니다. 3. 인코딩, isolation, timezone 설정 ALTER ROLE [user_id] SET client_encoding TO 'utf8'; ALTER ROLE [user_id] SET default_transaction_isolation TO 'read committed..
-
[Django] 웹 페이지 만들기 2 (페이지 출력 확인)Programming/Django 2021. 12. 13. 14:24
django 세팅은 아래 url을 참고해주세요! https://code-space.tistory.com/entry/Django-%EC%9B%B9-%ED%8E%98%EC%9D%B4%EC%A7%80-%EB%A7%8C%EB%93%A4%EA%B8%B0-1-Django-%EC%9B%B9-%ED%94%84%EB%A0%88%EC%9E%84-%EC%9B%8C%ED%81%AC-%EC%84%B8%ED%8C%85?category=974774\ [Django] 웹 페이지 만들기 1 (Django 웹 프레임 워크 세팅) 저는 visual studio code에 django를 사용해서 웹 페이지를 만들어 보겠습니다. visual sutdio code에 python과 django 설치를 안하셨다면 먼저 설치 진행해주세요! http..
-
[Django] 웹 페이지 만들기 1 (Django 웹 프레임 워크 세팅)Programming/Django 2021. 12. 13. 11:52
저는 visual studio code에 django를 사용해서 웹 페이지를 만들어 보겠습니다. visual sutdio code에 python과 django 설치를 안하셨다면 먼저 설치 진행해주세요! https://code-space.tistory.com/entry/Python-Python-%EC%84%A4%EC%B9%98-Visual-Studio-Code-1 [Python] Python 설치 (Visual Studio Code) visual studio code에 python을 설치해 보겠습니다. 1. 먼저 visual studio code에 python을 검색 후 install 버튼을 클릭합니다. python을 설치하라는 메시지가 뜬다면 아래 링크를 참고해서 python을 설치해주.. code-sp..
-
[Django] Django 시작하기 (설치)Programming/Django 2021. 12. 7. 23:36
저는 visual studio code에 django를 설치해서 사용하려고 합니다. python 설치를 안하셨다면 먼저 python 설치와 가상환경설정까지 해주세요! https://code-space.tistory.com/entry/Python-Python-%EC%84%A4%EC%B9%98-Visual-Studio-Code-1 [Python] Python 설치 (Visual Studio Code) visual studio code에 python을 설치해 보겠습니다. 1. 먼저 visual studio code에 python을 검색 후 install 버튼을 클릭합니다. python을 설치하라는 메시지가 뜬다면 아래 링크를 참고해서 python을 설치해주.. code-space.tistory.com 1. D..