notfound2 Python - Error Cheat sheets Python - Error Cheat Sheets You are trying to add a non-nullable field 'account_nm' to stocksingleacount without a default; we can't do that (the database needs something to populate existing rows). makemigrations 를 이용하여 모델 스키마를 수정하려 할 때 발생하는 NULL 설정 에러이다 추가되는 컬럼에 NULL =True 해주거나 Default = '' 값을 지정해주면 된다 익숙해지기 전까지는 절대 DB 시스템에서 drop하거나 alter 하지말자 1. 기존모델을 수정 (종속성 구조도 같이수정 admin.py, views.py) 2. p.. 2019. 6. 27. React-router - NotFound (Switch) ReactJS - NotFound (Switch)react-router v4 version4sorce code는 이전 문서에서 재활용한다./...../ 는 생략되었다는 표시임파란 글씨는 추가된 것임빨간 글씨는 수정된 것임 요청하는 페이지가 존재하지 않을 경우 보여질 페이지 Switch문은 차례대로 비교하여 최종적으로 찾는 페이지가 없을 경우 NotFound 페이지를 보여줌. ~cra-router/src/routes$ NotFound.jsimport React from 'react'; const NotFound = () => { return ( 존재하지 않는 페이지입니다. 404 );}; export default NotFound; ~cra-router/src/ App.jsimport React from .. 2018. 4. 11. 이전 1 다음