본문 바로가기

전체 글79

리액트 '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.
컬러 찾을 때 참고할만한 사이트 모음 - 디자인할 때 유용한 사이트 1 ColRD http://colrd.com/ 특정 색상, 색 팔레트 조합, 그라디언트 그리고 색 검색시 나타나는 이미지, 패턴으로 영감을 얻을 수 있는 사이트 2 color-hex https://www.color-hex.com/color-palettes/ 색상 팔레트 모음 사이트 3 Colors https://coolors.co/browser/best/1 색상 팔레트 모음 사이트 2 ( 앱도 있어서 편해 보이지만 가입 무조건 해야해서 귀찮아서 사용 안해봄 ) 4 Adobe Color https://color.adobe.com/ko/explore 어도비에서 제공하는 색상 팔레트, 색상 구성표 사이트 4 - 2 Adobe Color https://color.adobe.com/ko/create 이쪽으로 들어.. 2020. 1. 9.
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.