본문 바로가기

개발일기62

리액트 'img elements must have an alt prop, either with meaningful text, or an empty string for decorative images' 버그 해결 방법 위와 같이 적어서 버그가 났었음. 해결 방법 : alt="" 추가 해줌으로써 해결 alt 추가 해주니 버그남 이유는 차차 알아봐야 겠다... 알다가도 모를 ...이 아닌 까도까도 계속 모르는게 나오는 리액트의 세상 2020. 2. 5.
python 자주 사용하는 elasticsearch query 모음 (1) 준비 # es 라이브러리 연결 import elasticsearch # es 서버 연결 es = elasticsearch.Elasticsearch("localhost:9200") search / 조건부 값 찾기 (여러개, 단일은 get) # index와 doctype 이름은 company # 'username':advertiser_name 일치하는 값 모두 찾기. body = { "query": { "query_string": { "default_field": "username", "query": advertiser_name } } } t = es.search(index='complete', doc_type='complete', id=store_id, body=body) update_by_query / .. 2020. 1. 20.
Python Django 2.2V runserver 버그 : django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17). 설치할거 설치하고 (python3, 필요모듈 중 sqlite3 ) django 첫 실행하려는데 (python3.7 manage.py runserver 0.0.0.0:8000) 아래와 같은 에러가 나타남 Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 870, in run self._target(*se.. 2019. 12. 6.
[CentOS, yum, pip, 3.7] CentOS에 Django 설치하기. 일러두기 - CentOS에서 설치를 진행합니다. yum으로 pip설치를 진행할 것이며 pip로 Django를 설치합니다. Python버전은 3.7.4이고 외부에서 접근하는 방법, 백그라운드로 실행하는 방법까지 정리해놓은 문서입니다 이게 다입니다. 미래의 나야 까먹었을땐 절망하지 말고 이 문서를 보고 희망을 찾길 바란다 0. CentOS에서 Python3.7.4 설치하는 방법 2019/12/06 - [개발일기/파이썬] - centOS / Python 3.7 설치하기 - yum, gcc, openssl, bzip, libffi 사용 1. 앞서 필요한 것들 설치하기 - pip # yum install python-pip 2. Django 설치 // 2.x 대 사용자라면 # pip install django /.. 2019. 12. 6.