2024. 4. 25. 10:52

 

AbstractUser 에서 관리자 계정 생성할 때 username 입력 에러 나서

username 항목에 

 

null = True,

 

default = ' '

 

를 넣어주면 된다

2024. 4. 19. 14:27

1. gmail 로그인

 

2. 설정 - 보안 - 

 

 

from django.core.mail import EmailMessage

email = EmailMessage('title', 'content', to=['apple@gmail.com'])

email.send()

 

 

smtplib.SMTPServerDisconnected: 

Connection unexpectedly closed

 

발생하는 이유

 

SSL을 True로 설정해야 한다

SSL을 True로 설정하면 TLS는 False로 설정해야 한다

 

둘 중 하나만 True가 되어야 한다

 

 

2024. 4. 11. 19:59

ps aux --forest | grep nginx | grep -v color

2024. 3. 15. 15:45

npm install -D @babylonjs/inspector

 

import { Inspector } from '@babylonjs/inspector';

 

Inspector.Show(scene, { });

2024. 3. 15. 13:38

npm create vite@latest .

 

Vanilla

JavaScript

 

npm install

npm run dev

 

npm install -D @babylonjs/core

 

counter.js javascript.svg 삭제

 

main.js style.css 내용 전체 삭제

 

main.js에 기본 코드 입력

 

import * as BABYLON from '@babylonjs/core';


const canvas = document.querySelector('#renderCanvas');

const engine = new BABYLON.Engine(canvas);


const createScene = () => {

  const scene = new BABYLON.Scene(engine);


  return scene;

}


const scene = createScene();


engine.runRenderLoop(() => {

  scene.render();

});

style.css 에 기본 스타일 입력

 

html, body { overflow: hidden; width: 100%; height: 100%; margin: 0; padding: 0; }

#renderCanvas { width: 100%; height: 100%; touch-action: none; }