본문 바로가기

반응형

Software Engineering

(4)
[Django] TIL - Admin View On Site 활성화하는 방법 [Django] Admin View On Site 활성화하는 방법 Code from django.db import models from django.contrib.auth.models import User import os ...(코드생략)... class Comment(models.Model): post = models.ForeignKey(Post, on_delete=models.CASCADE) author = models.ForeignKey(User, on_delete=models.CASCADE) content = models.TextField() created_at = models.DateTimeField(auto_now_add=True) modified_at = models.DateTimeFiel..
[MySQL] insert query 실행시 ERROR 1366 (HY000) incorrect string value : ''\xED\x95\x9C\xEC\x9A\xB0...' for column 'itemName' at row 1 에러 발생시 설정 변경 방법 1. 오류 사항 1) mysql insert query 실행시 오류 메시지 mysql> ERROR 1366 (HY000) : incorrect string value : ''\xED\x95\x9C\xEC\x9A\xB0...' for column 'itemName' at row 1 2) application 내에서 insert query 실행시 오류 메시지 org.springframework.jdbc.UncategorizedSQLException: ### Error updating database. Cause: java.sq..
[Maven] pom.xml 1. pom이란A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects. Examples for this is the build directory, which is target; the source directory, which is src/main/java; the test source directory, which is src/mai..
[MySQL] Macbook에서 root 패스워드 지정 >> cd /user/local/mysql/bin (엔터)>> sudo ./mysql (엔터)sudo : Mac OS에서 운영체제 관리자의 권한을 요구하는 작업을 수행할 때 필요한 명령어 mysql> use mysql;mysql> update user set password=password('비밀번호') where user='root';mysql> flush privileges;mysql> exit; >> sudo ./mysql -uroot -pEnter Password : 비밀번호

반응형