$ brew update $ brew install pyenv $ nano .zshrc --nanoEditor export PYENV_ROOT=/usr/local/var/pyenv if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi --nanoEditor $ source .zshrc $ exec "$SHELL" $ pyenv install --list $ pyenv install 3.8.1 -> .pyenv/versions/3.8.1 생성 $ pyenv shell 3.8.1 $ pyenv glob..

INTRO OS, python, django, nginx, MariaDB 환경 [Raspberry Pi : server] Raspbian : GNU/Linux 10 (buster) python 3.7.3 django 2.2.6 nginx 1.14.2 mysql V15.1 Distrib 10.3.17-MariaDB ## Version 확인 방법 ## Raspberry Pi : server # Raspbian console에서 확인 ## python 3.7.3 $ python3 -V ## nginx 1.14.2 $ nginx -v ## mysql V15.1 Distrib 10.3.17-MariaDB $ mysql -V 1. DB/USER 생성 및 권한 부여 in MariaDB : NewDB -> yourID..

INTRO OS, python, django, mysql 환경 [macbook : local] macOS : Catalina 10.15.1 python 3.7.4 django 2.2.6 mysql Ver 8.0.18 for osx10.15 on x86_64 (Homebrew) ## Version 확인 방법 ## python 3.7.4 # virtualenv 환경에서 python or python3 (jbe)$ python -V ## django 2.2.6 # python console에서 확인 >> import django >> django.VERSION ## mysql Ver 8.0.18 for osx10.15 on x86_64 (Homebrew) # macOS mysql terminal 확인 $ my..

INTRO Arduino(아두이노)를 이용해서 거실의 커튼을 열고닫는 제어를 해보고 싶다는 생각에서 시작했다. python을 공부하고 있는 요즘 이녀석을 어디까지 쓸 수 있을 지 고민 중이다. 그 첫걸음에 서서 빛감지 센서와 모터를 구동하는 것을 목표로 정했다. Arduino에 대한 설명은 위키백과에게 넘기도록 한다. https://ko.wikipedia.org/wiki/%EC%95%84%EB%91%90%EC%9D%B4%EB%85%B8 일단 Arduino를 다루는 것부터 시작해보려고 한다. 준비물 : Arduino UNO R3, USB cable, 저항, LED(Light Emitting Diode, 발광 다이오드) 1. Arduino IDE https://www.arduino.cc/en/Main/Sof..

INTRO Heroku 배포 전 사전 준비에서 localhost의 project를 일부 수정하여 GitHub 저장소에 배포하였다. 이전 포스트 https://jinozblog.tistory.com/15를 참고하면 된다. - Heroku, GitHub 회원가입 및 설치 - jinozblog2019/jblog/settings.py 재설정 - .gitignre 생성 및 git add/commit/push 다음은 git 저장소에서 Heroku에 push할 차례이다. localPC project -> git 저장소 -> Heroku 먼저 git remote에 heroku를 추가하자. $ heroku login $ heroku git:remote -a jinozblog2019 $ git remote -v herok..

1. Heroku : PaaS(Platform as a Service) cloud database 제공, PostgreSQL 회원가입 및 app 생성 : jinozblog2019 https://dashboard.heroku.com/apps Heroku CLI 설치 https://devcenter.heroku.com/articles/heroku-cli $ brew tap heroku/brew && brew install heroku 2. GitHub : website에 올릴 파일 관리를 위한 원격 저장소 회원가입 및 Repositories(저장소) 생성 https://github.com/ Repository name : jinozblog2019 Initialize this repository with a ..

Intro (macOS)[python] django post_list site에 구현하기 - 1/2 지난 포스트에 이어 DB table post_post Table을 127.0.0.1:8000에 접속 시 첫화면에 리스트를 불러오도록 해보려고 한다. jinozblog2019 tree : views.py에서 DB Table을 다룰 것이며, 첫화면 welcomemessage를 지우고 urls.py에 할당한다. . ├── db.sqlite3 ├── jblog │ ├── __init__.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── manage.py └── post ├── __init__.py ├── admin.py ├── apps.py ├── migrations ..

Intro 지금 보고있는 티스토리 jinozblog.tistory.com 첫화면의 구성은 다음과 같다. 3개의 포스트가 리스트 형식으로 나열되어있다. 포스트 미리보기에 구성된 항목을 보면 다음과 같다. 1. title : 글쓰기 제목 2. text : 글쓰기 내용 3. date : 발행 시간 4. category : post 구분 5. thumbnail : 미리보기 사진, 엄지손톱만한 그림에서 유래 여기서 1번~3번 항목에 category 항목에 user를 표시하는 형태로 구성하려고 합니다. 사전작업으로 http://127.0.0.1:8000/admin/에 로그인하여 사용자(들) 추가를 하였고 새로생성한 user로 로그인하여 2개의 포스트를 작성한 후 superuser로 재로그인하여 1개의 포스트를 작성..
- Total
- Today
- Yesterday
- DAQ
- Model
- r
- Regression
- Python
- pyserial
- COVID-19
- CSV
- 코로나19
- analysis
- git
- github
- 확진
- arduino
- template
- 라즈베리파이
- SSH
- raspberrypi
- DS18B20
- Templates
- Django
- Raspberry Pi
- Pandas
- vscode
- sublime text
- server
- 코로나
- 자가격리
- MacOS
- ERP
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |