일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
- navbar
- scotty
- 블린이
- 조맹크로키
- You should consider upgrading
- ValueError
- pip install --upgrade pip
- include
- Migrate
- 마이그레이트
- bootstrap4
- Python
- Django
- Uncaught SyntaxError
- ModuleNotFoundError
- 오류
- 취미미술
- JavaScript
- 조맹클래스101
- 알리
- error
- 크로키
- 마이그레이션
- TemplateSyntaxError
- junny
- Today
- Total
목록웹 세상 (13)
내가 하고 싶은 것들 중 하나

문제상황 LoginView.vue 에서 App.vue로 emit해주는 로그인 함수를 메서드로 작성하였고, 로그인 버튼을 클릭하면 로그인 함수가 실행되도록 했다. 로그인 주소로 들어와서 콘솔창을 켰는데 에러가 있다. [Vue warn]: Property or method "login" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#..

문제상황 가상환경 venv에 있었고, 이미 pip install python-decouple 을 통해 디커플을 인스톨 후 임포트 했지만, from 에 빨간 밑줄이 뜨고 import 할 수 없다고 떴다 from decouple import config # Unable to import decouple 해결과정 구글링 https://github.com/Microsoft/vscode-python/issues/1185](https://github.com/Microsoft/vscode-python/issues/1185) https://code.visualstudio.com/docs/python/environments#_choosing-an-environment python interpreter 설정을 해준다 F1..

문제상황 li 태그의 bullet points을 지우고 영화 장르를 한 줄로 보여주고 싶다 과정 1. bullet points 없애기: list-style .movie .movie__genres { list-style: none; #bullet points 지우기 margin: 5px 0px; } .movie__genres li, .movie .movie__year { margin-right: 10px; font-size: 14px; } list-style 을 지정해서 일단 bullets는 없앴다 li 는 block 요소이기 때문에 한 줄 씩 자리를 차지한다. 같은 줄에 나오게 하고 싶다면 2단계로 고고고 2. 한줄로 나타내기: flex 가즈아 디스플레이 설정을 flex로 바꿔준다 .movie .movi..

cdn 이용하기 bootstrap4 홈페이지에서 cdn 링크 복사해서 css는 head 닫는 태그 안쪽에, javascript는 body 닫는 태그 안쪽에 추가하기 https://getbootstrap.com/docs/4.5/getting-started/introduction/ {% load bootstrap4 %} 이용하기 {% load bootstrap4 %} {% bootstrap_javascript jquery='full' %} {% load bootstrap4 %} 해주고, css head 닫는 태그 안쪽에 한 줄, javascript jquery body 닫는 태그 안쪽에 한 줄이면 끝남! ㅎㅎ
문제상황 마이그레이션과 마이그레이트 시도 중에 마이그레이션은 성공 했으나 마이그레이트는 되지 않고 ValueError가 떴다. ValueError: The field admin.LogEntry.user was declared with a lazy reference to 'accounts.account', but app 'accounts' doesn't provide model 'account'. 해결과정 https://stackoverflow.com/questions/50324561/valueerror-the-field-admin-logentry-user-was-declared-with-a-lazy-reference 마이그레이션 파일과 데이터베이스를 지우..
문제상황 자바스크립트 에러 발생!! Uncaught SyntaxError: Invalid shorthand property initializer const icecream = ['99 cone', 'world cone'] const snack = { crown: ['ppotto', 'vic pie'], orion: ['Swing chip', 'chicken pop'] } const candy = null const Store = { icecream: icecream, snack = snack, candy:candy, } 해결과정 구글구글 검색 https://stackoverflow.com/questions/4200650..
var Function-level scope (fuction 단위의 scope를 가짐) 재선언이 가능함(동일한 변수를 중복해서 선언 가능) 재할당 가능함 코드의 길이가 길어졌을 때 원치않게 기존에 있던 변수를 다른 값으로 덮어쓰게 될 수 있다. ES6(ECMAScript6)부터 이를 보완해주는 let과 const가 등장한다. var num = 10; //undefined num; //10 var num = 20; //undefined 재선언 가능 num; //20 num = 30; //undefined 변경되는 데이터 저장 가능(재할당 가능) num; //30 let Block-level scope 재선언 불가(이미 선언된 변수를 다시 선언할 수 없음), const와 같음 재할당이 가능하다(immutab..

문제상황 model을 설정해주기 위해서 클래스를 많이 만들고, 마이그레이션 하기 전에 일단 python manage.py runserver 8080 를 해줬는데 NameError가 뜬다. 같은 상황에서 마이그레이션을 진행해줘도 같은 에러가 뜬다. File "/home/ubuntu/projects/cvstore/managements/models.py", line 37, in class Sales_detail(models.Model): File "/home/ubuntu/projects/cvstore/managements/models.py", line 45, in Sales_detail events = models.ForeignKey(Event, on_delete=models.CASCADE) NameError..