본문 바로가기

웹개발/잡다한13

M1 tensorflow 설치 (anaconda가 이미 설치되어있는 경우) https://youtu.be/tGkZ9EARwzk 내가 계속 열심히 뒤졌던 영상들은 전부 아마콘다 없이 설치하는 법을 뒤져보고 있었기 때문에 발생하는 문제였다. 아나콘다를 설치한 채로 tensorflow를 설치하고 싶다면 그냥 이 영상을 따라하면 된다! 2022. 3. 14.
[Django, Python error] django.db.utils.IntegrityError: (1062, "1062 (23000): Duplicate entry '613' for key Traceback (most recent call last): File "/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/lib/python3.8/site-packages/django/core/handlers/base.py", line 179, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54.. 2021. 11. 3.
eb 배포 시 주의사항 eb init -i 로 하기 ​ eb create 뒤에 이름 쓰지 말고 그냥 eb create해서 대화형식으로 생성하기 이때 로드 밸런서는 application으로 설정 ​ https://lhy.kr/django-elasticbeanstalk 2021. 10. 25.
[Django, mysql 에러] mysql.connector.errors.integrityerror: 1452 (23000): cannot add or update a child row: a foreign key constraint fails Django에서 mysql을 연동한 상태에서 makemigrations을 진행하고 migrate를 진행할 때 이러한 오류가 발생했다. mysql.connector.errors.integrityerror: 1452 (23000): cannot add or update a child row: a foreign key constraint fails 검색해 보니 참조 무결성에 어긋났기 때문에 migrate를 진행할 수 없다고 했다. 일단 원인은 다음과 같다. 1. A라는 model이 B를 fk로 참조한다. 2. B라는 model이 C를 fk로 참조한다. 3. 이때 A라는 모델이 추가로 C를 fk로 참조하는 경우, 문제가 발생하게 된다. 이 모델을 참조하는 것 자체는 문제가 발생하지 않으나 a(A의 object).. 2021. 10. 21.