
csv / json을 firebase의 firestore에 올리는 방법[json to firestore]에 대해서 알아보겠습니다. Google Firebase에서는 두 가지 형태의 Database를 제공하는데, 유료 등록해야 json file import가 가능하도록 구분을 두었습니다. 1) Firestore database : 무료 | json import 불가 2) Realtime database : 무료 1개 (이후에는 유료로 등록해야 사용 가능) | json import가능 따라서 다음에서 json을 firestore database에 import하는 방법에 대해서 알아보겠습니다. 1. 액셀 / csv를 json file로 변환 (CSV to JSON) -이미 json file을 가지고 있으면 무..

Django 설치 후, Bootstrap 연동에 대해서 posting 하겠습니다. 1. Bootstrap Template Download startbootstrap.com/theme/freelancer/ 2. copy Bootstrap file to app folder Project > App 을 구성했으면, App의 하위 directory 에 static / templates folder를 생성함. 3. bootstrap 의 index.html을 templates 에 copy 함. 나머지 assets/css/js 는 static 하위에 copy 함. 4. Project > settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.au..
[Install] docs.djangoproject.com/ko/3.1/intro/tutorial01/ -Run Server python3 manage.py runserver 0:8000 [Port setting and execute] python3 manage.py runserver 0:8000 (외부에서 접속하도록 수정) -modify for all port accepted settings.py #ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['*'] [Admin page setting] 1. Create DB python manage.py makemigrations python manage.py migrate 2. Create Super User python manage.py cr..

안녕하세요. 제가 구동하고 있는 서버가 (혹은 network) 가끔 동작 안 하는 경우가 있는데, 이 때 핸드폰으로 알람을 주는 기능을 구현해봤습니다. 1. Server status check 1) 우선 ping 을 통해서 정상적으로 network 연결이 되는지 check합니다. 2) -c (count) 2개를 던져서 정상 여부 확인 [function] check_server_status(hostName) 2. Slack API를 통해 notification 전달 1) Slack API 를 통해서 notification 을 등록하여 event post합니다. 2) token 은 아래 slack api에서 얻어옵니다. api.slack.com/ 3)channel 생성하여 해당 channel 에 post합니..
python 에서 아래와 같은 에러가 뿜뿜했습니다. SyntaxError: Non-ASCII character '\xec' in file xx.py 사유) python 에서 한글을 loading하지 못하는 경우에 발생합니다. 대처) python 파일 맨 위에 utf-8 혹은 euc-kr 로 설정해주면 수정됩니다. # -*- coding: utf-8 -*- # -*- coding: euc-kr -*- 한글을 제대로 읽어오는 것을 확인했습니다.