profile
๐Ÿ‡ Rabbit can take a rest, but ๐Ÿข turtle can't
ํƒœ๊ทธ ๋ชฉ๋ก
์ „์ฒด๋ณด๊ธฐ (85)WeCode(77)TIL(73)์œ„์ฝ”๋“œ(69)์ฝ”๋”ฉ๋ถ€ํŠธ์บ ํ”„(66)CodingBootcamp(66)์ฝ”๋”ฉํ•™์›(65)python(18)django(11)sql(10)db(9)Database(8)algorithm(7)codekata(6)JavaScript(6)html(5)List(5)package(4)keyword(4)import(4)Module(4)parameter(4)dictionary(4)project(4)argument(4)DML(4)function(4)ORM(4)Positional(4)CSS(4)class(3)default(3)bcrypt(3)mysql(3)review(3)Backend(3)non default(3)tuple(3)ํŒŒ์ด์ฌ(3)query(2)ํŒจํ‚ค์ง€(2)cursor(2)str(2)FROM(2)์ƒ๋Œ€ ๊ฒฝ๋กœ(2)์ ˆ๋Œ€ ๊ฒฝ๋กœ(2)settings(2)object(2)prefetch_related(2)select(2)syntaxerror(2)views(2)math(2)set(2)selectrelated(2)delete(2)Restful(2)queryset(2)JWT(2)ํ•จ๊ป˜ํ•ด์„œ์œ„์ฝ”๋“œ(2)Flask(2)variable(2)Relative Path(2)JOIN(2)Absolute Path(2)๋ชจ๋“ˆ(2)API(2)manage(2)path(1)isalpha(1)FK(1)url(1)false(1)์—ฐ์‚ฐ์ž(1)์—ฐ๋ง(1)29cm(1)float(1)structure(1)one(1)๋ณ‘๋ ฌ์ (1)len(1)View(1)left(1)hashpassword(1)fixed(1)ํ›„๊ธฐ(1)OSI(1)PK(1)return(1)padding(1)network(1)model(1)width(1)codakata(1)outer(1)print(1)Int(1)True(1)tcp(1)layout(1)bootcamp(1)๋ธŒ๋žœ๋””(1)๋™๊ธฐ์‚ฌ๋ž‘(1)selector(1)Operators(1)urls.py(1)isdigit(1)error(1)If_Else(1)ec2(1)margin(1)UDP(1)์—ฐ์ดˆ(1)10๊ธฐ(1)second(1)json(1)iter(1)drf(1)@api_view(1)next(1)const(1)let(1)var(1)ํšŒ๊ณ ๋ก(1)box-sizing(1)content-box(1)many(1)f string(1)space_bar(1)put(1)options(1)Lazy loading(1)config(1)์‚ผํ•ญ์—ฐ์‚ฐ์ž(1)authorization(1)2020(1)rdb(1)inline block(1)timezone(1)update(1)@property(1)views.py(1)border(1)pymysql(1)decrement(1)type(1)block(1)increment(1)Timestamp(1)๊ฐœ๋ฐœ์ž(1)inline(1)models(1)clear(1)data(1)๋‚˜๋ผ์‚ฌ๋ž‘(1)Table(1)array(1)Fetch(1)modeling(1)display(1)py-bcrypt(1)comprehension(1)7Layer(1)aws(1)github(1)app(1)whitespace(1)urls(1)bytes(1)TestRunner(1)height(1)all(1)2020๋…„(1)border-box(1)date types(1)Token(1)iterm2(1)developer(1)FIRST(1)none(1)else(1)if(1)hash(1)Content(1)For_While(1)time(1)datetime(1)Date(1)๋ถ€ํŠธ์บ ํ”„(1)vscode(1)Eager Loading(1)authentication(1)OS(1)prefetch(1)static(1)elif(1)git(1)์Šค๋ ˆ๋“œ(1)test(1)Auth(1)tag(1)ํ”„๋กœ์„ธ์Šค(1)polls(1)๋ฐฐ์—ด(1)ํšŒ๊ณ (1)web(1)transport(1)third(1)position(1)data types(1)Ternary(1)unit test(1)๋ฐฑ์—”๋“œ(1)record(1)dir(1)tab(1)id(1)absolute(1)caching(1)relative(1)GET(1)POST(1)INSERT(1)rds(1)Box Model(1)patch(1)brandi(1)related(1)Thread(1)์†ก๊ตฌ์˜์‹ (1)S3(1)unit(1)process(1)๋™์‹œ์ (1)REST(1)Django REST framework(1)Aquery(1)Cache(1)iterable(1)iterator(1)length(1)hashpw(1)

Django REST Framework2

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

Django REST Framework - Views

์˜ค๋Š˜๋ถ€ํ„ฐ ๋ณธ๊ฒฉ์ ์œผ๋กœ DRF๋ฅผ ๊ณต๋ถ€ํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค. ์‹œ์ž‘์€ API Guide์˜ View์ด๋‹ค.

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

Select_Related & Prefetch_Related

selectrelated์™€ prefetchrelated์˜ ์ฐจ์ด์ ์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ๋จผ์ € ์•ž์„œ 2๊ฐœ์˜ ๊ธ€์—์„œ QuerySet๊ณผ ORM์— ๋Œ€ํ•ด ๊ธ€์„ ์ผ์—ˆ๋‹ค. QuerySet์€ ์ผ๋ฐ˜์ ์œผ๋กœ Lazy-Loading(์ง€์—ฐ ๋กœ๋”ฉ)๋ฐฉ์‹์„ ํƒํ•œ๋‹ค.

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

TCP/UDP

์ •๋ง ๊ฐ„๋‹จํ•˜๊ฒŒ TCP์™€ UDP์— ๋Œ€ํ•ด, ๊ทธ๋ฆฌ๊ณ  ๊ทธ ์ฐจ์ด๋Š” ๋ญ”์ง€ ์•Œ์•„๋ณด๋ ค๊ณ  ํ•œ๋‹ค.

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

Eager Loading & Options in ORM

์ €๋ฒˆ ๊ธ€์—์„œ๋Š” Lazy Loading๊ณผ Cache(Caching)์— ๋Œ€ํ•ด ๊ณต๋ถ€๋ฅผ ํ–ˆ๋‹ค. QuerySet์€ ๊ธฐ๋ณธ์ ์œผ๋กœ Lazy Loading ๋ฐฉ์‹์„ ์„ ํƒํ•œ๋‹ค. ํ•˜์ง€๋งŒ SQL๋กœ ํ•œ ๋ฒˆ์— ๋งŽ์€ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ค๊ณ  ์‹ถ์„ ๋•Œ๊ฐ€ ์žˆ์„ ๊ฒƒ์ด๋‹ค.

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

Lazy Loading & Caching in ORM

PyCon Korea์—์„œ ์ข‹์€ ์˜์ƒ์ด ํ•˜๋‚˜ ์˜ฌ๋ผ์™”๋‹ค.Django ORM(QuerySet)์— ๋Œ€ํ•œ ๋‚ด์šฉ์ด๋‹ค.์ฃผ๋‹ˆ์–ด๋“ค์ด ORM์„ ๊ณต๋ถ€ํ•˜๋ฉด์„œ ๋†“์น˜๊ธฐ ์‰ฝ๊ฑฐ๋‚˜ ๋ชฐ๋ž๋˜ ๋‚ด์šฉ์ด ๋งŽ์•„๊ณต๋ถ€ํ•˜๋Š”๋ฐ ์ •๋ง ๋„์›€์ด ๋งŽ์ด ๋˜์—ˆ๋‹ค.ORM์˜ ํŠน์ง•์— ๋Œ€ํ•ด ๋‹ค๋ค„๋ณด๋ ค๊ณ  ํ•œ๋‹ค.

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

isalpha & isdigit in python

์•Œ๊ณ ๋ฆฌ์ฆ˜ ๊ณต๋ถ€๋ฅผ ํ•˜๋‹ค ๊ธฐ๊ฐ€๋งฅํžŒ ํ•จ์ˆ˜๋ฅผ ํ•˜๋‚˜ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. ๋ฐ”๋กœ ์–ด๋– ํ•œ ๋ฌธ์ž์—ด์— ๋Œ€ํ•ด์„œ ๊ทธ ๋ฌธ์ž์—ด์ด ๋ฌธ์ž์ธ์ง€ ์ˆซ์ž์ธ์ง€ True False๋กœ ๋ฆฌํ„ดํ•ด์ฃผ๋Š” ํ•จ์ˆ˜ isalpha()์™€ isdigit()์ด๋‹ค.

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

์Šค๋ ˆ๋“œ

์ „ ์‹œ๊ฐ„์— ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•ด ์•Œ์•„๋ดค๋‹ค. ์ด๋ฒˆ์—” ์Šค๋ ˆ๋“œ์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๋ ค๊ณ  ํ•œ๋‹ค.

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

ํ”„๋กœ์„ธ์Šค

์˜›๋‚ ์—๋Š” ๋ฌด์—‡์„ ๋‹ค์šด๋กœ๋“œํ•˜๋ฉด์„œ ๋งˆ์šฐ์Šค๊ฐ€ ์›€์ง์ด์ง€ ์•Š์•˜๊ณ , ํ‚ค๋ณด๋“œ๋„ ์ž…๋ ฅ๋˜์ง€ ์•Š์•˜๊ณ , ๊ทธ๋ƒฅ ์ง„์งœ ํ•˜๋‚˜์˜ ์ผ๋งŒ ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ํ–ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์˜ค๋Š˜๋‚ ์—๋Š” ์ •๋ง ๋งŽ์€ ์ž‘์—…์„ ํ•œ ๋ฒˆ์— ํ•  ์ˆ˜๊ฐ€ ์žˆ๋‹ค.

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

Django ObjectDoesNotExist

์žฅ๊ณ ์—์„œ ์˜ค๋ธŒ์ ํŠธ๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์„ ๋•Œ์˜ ์—๋Ÿฌ๋ฅผ ํšจ์œจ์ (?)์œผ๋กœ ์žก์•„์ฃผ๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ๋‹ค๋ฃจ๋ ค๊ณ  ํ•œ๋‹ค.

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

โ“list.clear() & list = [] in python

๋ช‡ ์ผ์ „, python์—์„œ list์— ๋Œ€ํ•œ ์ดˆ๊ธฐํ™” ๋ฐฉ๋ฒ•๊ณผ ๊ทธ ์ฐจ์ด์— ๋Œ€ํ•ด ๋‹ค๋ฃจ์—ˆ๋‹ค.

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

ํ…Œ์ŠคํŠธ DB์—†์ด Unit Test ํ•˜๊ธฐ in Django

์žฅ๊ณ ์—์„œ Unit Test๋ฅผ ํ•˜๊ธฐ์œ„ํ•ด test๋ฅผ ๋Œ๋ฆฌ๋ฉด ํ…Œ์ŠคํŠธDB(๊ฐ€์ƒ์˜ DB)๋ฅผ ๋งŒ๋“ค์–ด์„œ ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๊ฒŒ ๋œ๋‹ค. ๋กœ์ปฌ์ด๋‚˜ RDS์— ์žˆ๋Š” DB๋ฅผ ์ง์ ‘ ์‚ฌ์šฉํ•˜์—ฌ ํ…Œ์ŠคํŠธ๋ฅผ ํ•  ์ˆ˜ ์—†์„๊นŒ? ๋ผ๋Š” ์˜๋ฌธ์„ ๊ฐ€์ง€๊ณ  ์“ด ๊ธ€์ด๋‹ค.

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

python ๋ฆฌ์ŠคํŠธ ์ดˆ๊ธฐํ™” ๋ฐฉ๋ฒ•๊ณผ ์ฐจ์ด

๊ฐ‘์ž๊ธฐ ํŒŒ์ด์ฌ ๋ฆฌ์ŠคํŠธ์˜ clear ๋ฉ”์†Œ๋“œ๊ฐ€ ์™œ ์žˆ๋Š”์ง€ ๊ถ๊ธˆํ–ˆ๋‹ค.

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

MySQL date and time data types

Wednesday_Oct_21 - MySQL์—๋Š” 4๊ฐ€์ง€์˜ ๋‚ ์งœ์™€ ์‹œ๊ฐ„๊ด€๋ จ ํ•„๋“œ๊ฐ€ ์กด์žฌํ•œ๋‹ค.๋”ฑ ๋ด๋„DATE๋Š” '2020-10-21'์‹์˜ ํ˜•์‹TIME์€ '15:18:43'์˜ ํ˜•์‹๊ทธ๋Ÿฐ๋ฐ DATETIME๊ณผ TIMESTAMP๋Š” '๋‚ ์งœ ์‹œ๊ฐ„'์˜ ํ˜•์‹์ธ ๊ฒƒ ๊ฐ™์€๋ฐ..ํ˜•์‹์˜ ์ฐจ์ด๋Š”

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