profile
Backend Developer ๐ŸŒฑ

[TIL] ํฐ ๋…ธ์ด๋งŒ (Von Neumann) ๊ตฌ์กฐ

CODE ์ฑ…์„ ์ฝ๋‹ค๊ฐ€ 'ํฐ ๋…ธ์ด๋งŒ ๊ตฌ์กฐ'๋ผ๋Š” ๋‹จ์–ด๋ฅผ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. ํฐ ๋…ธ์ด๋งŒ ๊ตฌ์กฐ? ๋ญ์ง€? ์‹ถ์–ด์„œ ์ฐพ์•„๋ณธ ๋‚ด์šฉ์ด๋‹ค. ํฐ๋…ธ์ด๋งŒ ๊ตฌ์กฐ๊ฐ€ ๋“ฑ์žฅํ•˜๊ธฐ ์ด์ „์˜ ์ปดํ“จํ„ฐ๋“ค์€ ์Šค์œ„์น˜๋ฅผ ์„ค์น˜ํ•˜๊ณ  ์ „์„ ์„ ์—ฐ๊ฒฐํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜๊ณ  ์‹ ํ˜ธ๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ์‹์ด์—ˆ๋‹ค. ํ”„๋กœ๊ทธ๋žจ๊ณผ ๋ฐ์ดํ„ฐ๋ฅผ ํ•˜๋‚˜์˜ ๋ฉ”๋ชจ๋ฆฌ์—

2021๋…„ 3์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL]Gunicorn ์‚ฌ์šฉํ•˜๊ธฐ

Gunicorn์€ Green Unicorn์ด๋ผ๋Š” ๋œป์œผ๋กœ Python WSGI HTTP ์„œ๋ฒ„๋‹ค.์›น์„œ๋ฒ„์™€ WAS ์‚ฌ์ด๋ฅผ ์—ฐ๊ฒฐํ•˜๋Š” ์ธํ„ฐํŽ˜์ด์Šค๋กœ ํŒŒ์ด์ฌ์—์„œ๋Š” wsgi๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค.์ด๋ ‡๊ฒŒ ์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•˜๋ฉด EC2๋ฅผ ์ข…๋ฃŒํ•ด๋„ ์„œ๋ฒ„๊ฐ€ ๊ณ„์† ์ผœ์ ธ์žˆ๋Š” ์ƒํƒœ๊ฐ€ ๋œ๋‹ค.๋ชฉ๋ก ๋งจ ์œ„์— ์žˆ๋Š”

2021๋…„ 2์›” 28์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Django]FBV ์™€ CBV

Django๋Š” Views.py๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๊ณ , urls.py์—์„œ ์š”์ฒญ์— ๋”ฐ๋ผ views.py๋กœ ๋ณด๋‚ด์„œ ๋‹ค์‹œ ์ฒ˜๋ฆฌํ•œ๋‹ค. ์ด๋•Œ, Views ๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์€ 2๊ฐ€์ง€๊ฐ€ ์žˆ๋Š”๋ฐ, ํ•จ์ˆ˜(FBV)๋กœ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•๊ณผ ํด๋ž˜์Šค(CBV)๋กœ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. ํ•จ์ˆ˜ ๊ธฐ๋ฐ˜ ๋ทฐ(Functi

2021๋…„ 2์›” 7์ผ
ยท
1๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL][error]http,https์˜ ์ฐจ์ด์ 

์‚ฌ์ด๋“œ ํ”„๋กœ์ ํŠธ์— ์†Œ์…œ ๋กœ๊ทธ์ธ ๊ธฐ๋Šฅ์„ ๋„ฃ๊ธฐ๋กœ ํ–ˆ์–ด์„œ ์†Œ์…œ ๋กœ๊ทธ์ธ์„ ๋งž์ถฐ๋ณด๋ ค๊ณ  ํ–ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ...You're accessing the development server over HTTPS, but it only supports HTTP. ์ด๋Ÿฐ ์—๋Ÿฌ ์ฝ”๋“œ๊ฐ€ ๊ณ„์† ๋ฐœ์ƒํ–ˆ๊ณ 

2021๋…„ 1์›” 24์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL]JSONํŒŒ์ผ์ด๋ž€?

๊ณ„์† JsonResponse๋ฅผ ์‚ฌ์šฉํ–ˆ์œผ๋ฉด์„œ Json์ด ๋ฌด์—‡์ธ์ง€ ์ด์ œ์•ผ ์•Œ์•„๋ณด๋Š” ๋‚˜...

2020๋…„ 12์›” 6์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL][error]๋ฐ์ดํ„ฐ ์‚ญ์ œ _delete,truncate ์ฐจ์ด

error ๋ฉ”์„ธ์ง€ : ์ €์žฅ๋œ ๋ฐ์ดํ„ฐ๋ฅผ ์ง€์›Œ์•ผํ•  ๋•Œ๋งˆ๋‹ค ์ด์ „์—๋Š” delete ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•œ ํ›„์— ALTER TABLE ํ…Œ์ด๋ธ”๋ช…AUTO_INCREMENT = 0; ๋ช…๋ น์–ด๋กœ ํ…Œ์ด๋ธ” ์ƒ์„ฑ์‹œ์˜ ์ดˆ๊ธฐ ๊ฐ’ ๋ถ€ํ„ฐ ์ƒ์„ฑ๋˜๋„๋ก ํ–ˆ๋‹ค. (....TRUNCATE ์ดํ•ดํ•  ๋•Œ ์ฐธ๊ณ ๋œ

2020๋…„ 12์›” 6์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL][error]POST MAN ์—ฐ๊ฒฐ์˜ค๋ฅ˜

: ์„œ๋ฒ„์™€ ํฌ์ŠคํŠธ๋งจ์ด ์—ฐ๊ฒฐ์ด ์•ˆ๋˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค. ipconfig๋กœ ip๋„ ํ™•์ธํ–ˆ๊ณ ,post์ธ์ง€, get์ธ์ง€ ๋“ฑ๋“ฑ method๋„ ํ™•์ธํ–ˆ๊ณ ,urls.py๋„ ํ™•์ธํ•ด์„œ api ์ฃผ์†Œ๊ฐ€ ํ‹€๋ฆฌ์ง€ ์•Š์•˜๋‹ค๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ์Œ์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ...python runserver๊ฐ€ ์ž˜ ๋˜๊ณ  ์žˆ๋‹ค๋Š”

2020๋…„ 12์›” 2์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL]List comprehension ์ค‘์ฒฉ

๋ฆฌ์ŠคํŠธ ์ปดํ”Œ๋ฆฌํ—จ์…˜ ์ค‘์ฒฉ!!!!!!!

2020๋…„ 11์›” 29์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL]lambdaํ•จ์ˆ˜

๋™๊ธฐ๋“ค์ด lambda ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์„ ์ž์ฃผ ๋ณด๊ธฐ๋„ ํ–ˆ๊ณ , ํ•œ๋ฒˆ ์จ๋ณด๊ณ  ์‹ถ์€๋ฐ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋Š”์ง€ ๋ชฐ๋ผ์„œ 1. ๋žŒ๋‹ค(lambda)๋ž€? ๋žŒ๋‹ค(lambda)๋Š” ์ต๋ช…ํ•จ์ˆ˜๋ฅผ ์ง€์นญํ•œ๋‹ค. ๊ทธ๋ ‡๋‹ค๋ฉด ์ต๋ช… ํ•จ์ˆ˜๋ž€? ํ•จ์ˆ˜์ง€๋งŒ ๊ธฐ์กด์˜ ํ•จ์ˆ˜ ์„ ์–ธ ๋ฌธ๋ฒ•๊ณผ ๋‹ฌ๋ฆฌ ํ•จ์ˆ˜์˜ ์ด๋ฆ„์„ ์จ์ฃผ์ง€ ์•Š

2020๋…„ 11์›” 29์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Django]makemigrations์™€ migrate์˜ ์ฐจ์ด

2020๋…„ 11์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[Django][error]makemigrations๋Š” ๋˜๋Š”๋ฐ migrate๊ฐ€ ์•ˆ ๋  ๋•Œ

model์„ ์ˆ˜์ •ํ•œ ๋’ค์— python manage.py makemigrations , python manage.py migrate์„ ์ง„ํ–‰ํ–ˆ๋Š”๋ฐ

2020๋…„ 11์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Django]๊ฐœ์ธ์ •๋ณด ์•”ํ˜ธํ™”

๋“œ๋””์–ด ๊ธฐ์—…ํ˜‘์—…์„ ์‹œ ์œ„์ฝ”๋“œ์—์„œ 1,2์ฐจ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•  ๋•Œ๋Š” ์œ ์ €์˜ ์•„์ด๋””, ๋น„๋ฐ€๋ฒˆํ˜ธ, ๋‹‰๋„ค์ž„ ์ •๋ณด๋งŒ ํ•„์š”ํ–ˆ๊ณ , ๊ทธ ์ค‘์—์„œ๋„ ์œ ์ €์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ๋งŒ 'ํ•ด์‰ฌํ•จ์ˆ˜'๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์•”ํ˜ธํ™”ํ•œ ํ›„ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ €์žฅํ–ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์ด๋ฒˆ ๊ธฐ์—…ํ˜‘์—…

2020๋…„ 11์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Django][error]

์—๋Ÿฌ ๋‚ด์šฉ :SystemCheckError: System check identified some issues:์ด๊ฒŒ ๋„๋Œ€์ฒด ๋ฌด์Šจ ๋ง์ธ๊ฐ€ ์‹ถ์—ˆ๋‹ค. ์ง„์งœ ์ปดํ“จํ„ฐ ๋ฒˆ์—ญ๊ธฐ์™€ 13๊ธฐ ์ธ๊ฐ„ ๋ฒˆ์—ญ๊ธฐ๋ถ„๋“ค๊ป˜ ๋„์›€์„ ๊ตฌํ•ด์„œ.. ์—ด์‹ฌํžˆ ๊ตฌ๊ธ€๋ง.... ์ฐธ๊ณ  ์‚ฌ์ดํŠธ : https://

2020๋…„ 11์›” 15์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[TIL]List Comprehension

iterableํ•œ ์˜ค๋ธŒ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•œ ๋ฐฉ๋ฒ•์ค‘ ํ•˜๋‚˜๋กœ ํŒŒ์ด์ฌ์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์œ ์šฉํ•œ ๊ธฐ๋Šฅ ์ค‘ ํ•˜๋‚˜๋‹ค. List Comprehension (LC)Set Comprehension (SC)Dict Comprehension (DC)Generator Expression

2020๋…„ 11์›” 15์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[TIL]MySQL database delete 'table'

ํ”„๋กœ์ ํŠธํ•˜๋ฉด์„œ db ์—…๋กœ๋“œ ํŒŒ์ผ์„ ๋งŒ๋“ค์–ด์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๋„ฃ์—ˆ๋Š”๋ฐ ์‚ญ์ œํ•  ์ผ์ด ์žˆ์—ˆ๋‹ค. drop database๊ฐ€ ์•„๋‹Œ, delete๋ฅผ ์จ์„œ ํ…Œ์ด๋ธ”๋งŒ ์‚ญ์ œํ•ด์•ผํ–ˆ๋‹ค.ํ…Œ์ด๋ธ” ๋‚ด์šฉ ์ „์ฒด ์‚ญ์ œํ•˜๊ธฐ DELETE TABLE \[ํ…Œ์ด๋ธ”๋ช…]์ผ์ • ์ปฌ๋Ÿผ๋งŒ ์‚ญ์ œํ•˜๊ธฐ DELETE TABLE \[

2020๋…„ 11์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Django][error]corsheaders์˜ ์ค‘์š”์„ฑ

2์ฐจ ํ”„๋กœ์ ํŠธ์—์„œ ๋ฉ”์ธ ํŽ˜์ด์ง€์— ์ƒํ’ˆ ๋ฆฌ์ŠคํŠธ๋“ค์„ ํ”„๋ก ํŠธ์— ์ „๋‹ฌํ•ด์ฃผ์–ด์•ผํ•˜๋Š”๋ฐ ํ”„๋ก ํŠธ์ชฝ์—์„œ ERR_FAILED๊ฐ€ ๋‚ฌ๋‹ค. ๋‚ด ์„œ๋ฒ„์—์„œ๋Š” 200์ด ๋–ด๋Š”๋ฐ ํ™”๋ฉด์—๋Š” ๋‚ด๊ฐ€ ์ „๋‹ฌํ•œ ์ •๋ณด๋“ค์ด ๋œจ์ง€๋ฅผ ์•Š๊ณ ... ๋ฌด์—‡์ด ๋ฌธ์ œ์ธ์ง€ ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ค๊ฐ€ ์ด๋Ÿฐ ํŽ˜์ด์ง€๋ฅผ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. ...๋ฌด์Šจ ๋ง์„

2020๋…„ 11์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€

[TIL]git rebase

Git ๋ธŒ๋žœ์น˜ ํ•ฉ์น˜๊ธฐ Git์—์„œ ํ•œ ๋ธŒ๋žœ์น˜์—์„œ ๋‹ค๋ฅธ ๋ธŒ๋žœ์น˜๋กœ ํ•ฉ์น˜๋Š” ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ๋‘ ๊ฐ€์ง€๊ฐ€ ์žˆ๋‹ค. git merge git rebase merge๋Š” ๋ญ๊ณ , rebase๋Š” ๋ญ˜๊นŒ ? 1. git merge

2020๋…„ 11์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[Django]์ธ์ฆ, ์ธ๊ฐ€

1. ์ธ์ฆ(Authentication)

2020๋…„ 10์›” 25์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[๊ฐ•์˜][Django]3. Django ํ”„๋กœ์ ํŠธ ์„ค๊ณ„

=) ์•Œ์•„์•ผํ•˜๋Š” ๊ฒƒ๋“ค ์‚ฌ์šฉ์ž๊ฐ€ ์š”์ฒญํ•œ URL์„ ์–ด๋–ป๊ฒŒ ํ™œ์„ฑํ™”ํ•ด์„œ view์ค‘์— ์–ด๋–ค view๊ฐ€ ์‹คํ–‰๋˜์–ด์•ผํ•˜๋Š”์ง€๋ฅผ ์„ค์ •ํ•˜๋Š” URL conf ๋ฐฉ์‹์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ธฐ๋ฐ›์€ URL์„ view๋Š” ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ•˜๋Š”์ง€, model์ชฝ์— ์–ด๋–ป๊ฒŒ ๋„˜๊ธฐ๊ณ , template์ชฝ์— ์–ด๋–ป๊ฒŒ ๋ฐ์ดํ„ฐ๋ฅผ

2020๋…„ 10์›” 3์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

[๊ฐ•์˜][Django]2. Django ์„ค์น˜ ๋ฐ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ

Django๋Š” MVT ํŒจํ„ด์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค. M : Model V : View T : Template

2020๋…„ 10์›” 3์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€