Notice
Recent Posts
Recent Comments
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Tags more
Archives
Today
Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

๐ŸŒฒ์ž๋ผ๋‚˜๋Š”์ฒญ๋…„

19.11.19(ํ™”) ๋ณธ๋ฌธ

Today I Learnd

19.11.19(ํ™”)

JihyunLee 2019. 11. 19. 09:59
๋ฐ˜์‘ํ˜•

์˜ค๋Š˜ ํ•œ์ผ

์˜ค๋Š˜ ํ•œ์ผ์ด๊ธด ํ•˜์ง€๋งŒ, ์š”์ฆ˜ ๋ฐ”๋น ์„œ ๋ชป์ผ์œผ๋ฏ€๋กœ.. ์š”์ฆ˜ ํ•œ ์ผ

  • ๊ณต๋ชจ์ „ ์ฐธ๊ฐ€ (11์›”8์ผ)

    • ๋Œ€๊ฒฝ๊ถŒ ๊ณต๊ณต๋ฐ์ดํ„ฐ ํ™œ์šฉ ๊ฒฝ์ง„๋Œ€ํšŒ ๊ณต๋ชจ์ „์ด ์—ด๋ ธ๋‹ค. 

    • ๋งˆ๊ฐ ์ดํ‹€์ „์— ๊ธ‰ํ•˜๊ฒŒ ์ฐธ๊ฐ€ํ•ด์„œ ๊ธฐํš์•ˆ์„ ๋งŒ๋“ค์–ด์„œ ์ œ์ถœํ–ˆ๋Š”๋ฐ, ์˜ˆ์„ ํ†ต๊ณผํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค.(์ด10ํŒ€)

      ๊ณต๊ณต ๋ฐ์ดํ„ฐ๋ฅผ ์ด์šฉํ•ด์„œ ์•„์ด๋ฅผ ํ‚ค์šฐ๊ธฐ ์ข‹์€ ์œ„์น˜๋ฅผ ์ฐพ์•„์ฃผ๋Š” ์›นํŽ˜์ด์ง€๋ฅผ ๊ตฌ์ƒํ•˜์˜€๋‹ค.

    • ๋งˆ๊ฐ๊ธฐํ•œ์ด 1์›”๋‹ฌ์ด๋ฏ€๋กœ, ์•„์ง ๊ตฌํ˜„ํ•  ์‹œ๊ฐ„์€ ๋งŽ์ด ๋‚จ์•˜์ง€๋งŒ, ์‰ฝ๊ฒŒ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ์„๊นŒ..?

ํŒŒ์›Œํฌ์ธํŠธ๋กœ ๊ธ‰ํ•˜๊ฒŒ ๋งŒ๋“  ๊ธฐํš์•ˆ

  • ๋ฉ‹์Ÿ์ด ์‚ฌ์ž์ฒ˜๋Ÿผ ํ•ด์ปคํ†ค ์ฐธ๊ฐ€ (11์›”9์ผ,10์ผ)

    • ์ƒ์— ์ฒซ ํ•ด์ปคํ†ค์„ ์ฐธ๊ฐ€ํ•ด ๋ณด์•˜๋‹ค. ๋Š๋‚€์ ์€.. ์—ญ์‹œ ๋‚˜๋Š” ๋ฐค์ƒˆ๋Š” ์ฒด์งˆ์ด ์•„๋‹ˆ๋ผ๋Š” ๊ฒƒ ใ… ใ… 

    • ํ”„๋ก ํŠธ์—”๋“œ๋กœ ์ฐธ๊ฐ€ํ•˜์˜€๋‹ค. ๊ทธ๋ž˜์„œ ๋ฏธ๋ฆฌ ๋ถ€ํŠธ์ŠคํŠธ๋žฉ+์žฅ๊ณ ๋ฅผ ๊ณต๋ถ€ ํ•ด ๊ฐ”๋‹ค.

    • ๋ฐฐ์šด๊ฒƒ์ด ๋งŽ์•˜๋‹ค. ๋‹จ์‹œ๊ฐ„๋‚ด์— ๋ฌด์–ธ๊ฐ€๋ฅผ ๋งŒ๋“ค์–ด ๋‚ด์•ผ ํ•œ๋‹ค๋Š” ์••๋ฐ•๊ฐ..? ๋•Œ๋ฌธ์— ๋‘๋‡Œ๋ฅผ ์—ด์‹ฌํžˆ ๊ฐ€๋™ํ–ˆ๊ณ , ์žฅ๊ณ ์— ๋Œ€ํ•ด์—ฌ์ „ํžˆ ํ—ท๊ฐˆ๋ฆฌ๋Š” ๋ถ€๋ถ„์ด ์žˆ์Œ์„ ์•Œ๊ฒŒ ๋˜์—ˆ๋‹ค. ์‹œ๊ฐ„์ด ๋‚˜๋ฉด... ์ข€ ๋” ์ •ํ™•ํ•˜๊ฒŒ ๊ณต๋ถ€๋ฅผ ํ•ด๋ณด์•„์•ผ๊ฒ ๋‹ค. 

    • ํŠนํžˆ static, html์„ ๊ด€๋ฆฌํ•˜๋Š” ๋ถ€๋ถ„์ด ์–ด๋ ค์› ๋‹ค.  ์ƒ์œ„ python ํŒŒ์ผ import ํ•˜๋Š” ๋ถ€๋ถ„๋„..!

    • ํ•œ๋ฒˆ ํ•ด์ปคํ†ค ํ•ด๋ณด๋‹ˆ๊นŒ, ๋‹ค์Œ์—๋„ ํ•  ์ˆ˜ ์žˆ๊ฒ ๋‹ค! ๋ผ๋Š” ์ž์‹ ๊ฐ์„ ์–ป๊ณ  ๋Œ์•„์™”๋‹ค. ๊ฐ™์€ ๊ด€์‹ฌ์‚ฌ๋ฅผ ๊ฐ€์ง„ ๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์„ ๋งŒ๋‚˜๋Š” ์ผ๋„ ์ฆ๊ฑฐ์šด ๊ฒฝํ—˜์ด์—ˆ๋‹ค.

    • https://github.com/dlwlgus53/I_contact

ํ•ด์ปคํ†ค์ด ์ง„ํ–‰๋œ ๋ฉ‹์Ÿ์ด ์‚ฌ์ž์ฒ˜๋Ÿผ ๊ฑด๋ฌผ

  • ๋Œ€๊ฒฝ๊ถŒ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋Œ€ํšŒ ์ฐธ์—ฌ(์˜ˆ์„ )

    • ๋งค๋…„ ๋Œ€๊ตฌ, ๊ฒฝ๋ถ์ง€์—ญ ๋Œ€ํ•™๊ต๋“ค์ด ์—ฐํ•ฉํ•˜์—ฌ ๋Œ€๊ฒฝ๊ถŒ ํ”„๋กœ๊ทธ๋ž˜๋ฐ๋Œ€ํšŒ๊ฐ€ ์—ด๋ฆฐ๋‹ค. ์ž‘์€ ์ฝ”๋”ฉ ๋Œ€ํšŒ์ด๋‹ค.

    • ํ•ญ์ƒ ์ž๋ฐ”๋กœ ์ฐธ์—ฌํ•˜๋‹ค๊ฐ€ ์š”์ฆ˜ ํŒŒ์ด์ฌ์„ ์‚ฌ์šฉ ํ•  ์ผ์ด ๋งŽ์•„์„œ, ํŒŒ์ด์ฌ์œผ๋กœ ์ฐธ๊ฐ€ํ•ด ๋ณด์•˜๋‹ค.

    • ์ด 3๊ฐœ์˜ ๋ฌธ์ œ๊ฐ€ ์ถœ์ œ๋˜์—ˆ๊ณ , ์ด์  300์ ์ธ๋ฐ 275์ ์„ ๋ฐ›์•˜๋‹ค. ์™ ์ง€ ๋ณธ์„ ์— ์ง„์ถœ ํ•  ์ˆ˜๋„ ์žˆ์„ ๊ฒƒ ๊ฐ™๋‹ค. ๊ทผ๋ฐ ๋ฌธ์ œ๊ฐ€ ๊ทธ๋งŒํผ ์‰ฌ์› ์–ด์„œ ์ž˜ ๋ชจ๋ฅด๊ฒ ๋‹คใ… ใ…  

    • ๊ทธ๋ž˜๋„ ์ง€๊ธˆ๊นŒ์ง€ ์ฐธ์—ฌํ•œ ๊ฒƒ ์ค‘ ๊ฐ€์žฅ ์ข‹์€ ์ ์ˆ˜๊ฐ€ ๋‚˜์™€์„œ ๊ธฐ๋ปค๋‹ค. 

ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋Œ€ํšŒ ๋ฐฐ๋„ˆ

  • ๊ณ„์†๋˜๋Š” ์ธ!ํ„ด!

    • ์œ„์— ๊ฐ์ข… ๋‹ค๋ฅธ์ผ๋“ค์„ ์„ค๋ช…ํ–ˆ์ง€๋งŒ, ๊ธฐ๋ณธ์ ์œผ๋กœ ๋‚˜์˜ ์‹ ๋ถ„์€ ์ธํ„ด์ด๋‹ค. 

    • ์ฑ—๋ด‡์˜ ๊ธฐ๋Šฅ ๊ตฌํ˜„์„ ๋๋ƒˆ๋‹ค(๋๋ƒˆ๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค.. ์•ž์œผ๋กœ์˜ ํ…Œ์ŠคํŠธ์—์„œ ๋‹ค๋ฅธ ๋ฌธ์ œ์ ๋“ค์ด ๋˜ ๋ฐœ์ƒํ•˜๊ฒ ์ง€..?)

    • ๊ธฐํš๋‹จ๊ณ„์—์„œ ์–ธ๊ธ‰๋˜์ง€ ์•Š์•˜์ง€๋งŒ ์ถ”๊ฐ€์ ์œผ๋กœ ๋กœ๊ทธ ์ €์žฅ, ๋ถ„์„ ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ํ•˜์˜€๋‹ค.

    • ๋กœ๊ทธํŽ˜์ด์ง€ (๋ถ€ํŠธ์ŠคํŠธ๋žฉ์‚ฌ์šฉ)

      • ๋‘๊ฐ€์ง€ ๋กœ๊ทธ๋ฅผ ๋‹ฌ์•˜๋‹ค. ํ•˜๋‚˜๋Š” ์‚ฌ์šฉ์ž๋“ค์˜ ๋ชจ๋“ ํ–‰๋™, ํ”„๋กœ๊ทธ๋žจ์ƒ ์—๋Ÿฌ, warnning๋ฉ”์„ธ์ง€๋ฅผ ์ €์žฅํ•˜๋Š” log, ๋‹ค๋ฅธ ํ•˜๋‚˜๋Š” ์‚ฌ์šฉ์ž๋“ค์˜ ๊ฒ€์ƒ‰์–ด, ๊ฒ€์ƒ‰๊ฒฐ๊ณผ ์œ ๋ฌด๋ฅผ ์ €์žฅํ•˜๋Š” ๋กœ๊ทธ์ด๋‹ค.

      • ์‚ฌ์šฉ์ž๋“ค์˜ ๊ฒ€์ƒ‰์–ด, ๊ฒ€์ƒ‰๊ฒฐ๊ณผ ์œ ๋ฌด๋ฅผ ์ €์žฅํ•˜๋Š” ๋กœ๊ทธ๋ฅผ ํ†ตํ•ด, ์ƒ์œ„ 10๊ฐœ์˜ ๊ฒ€์ƒ‰์–ด ๊ฒฐ๊ณผ๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“ค์—ˆ๋‹ค.

      • ์ด ํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“ค๋ฉด์„œ ๊ดœํžˆ ๋ถ€ํŠธ์ŠคํŠธ๋žฉ์„ ์‚ฌ์šฉํ•ด ๋ณด์•˜๋‹ค.(๊ณต๋ถ€ ๊ฒธ..)

    • ์ด์ œ ์„œ๋ฒ„์— ์˜ฌ๋ฆฌ๋Š” ์ผ์ด ๋‚จ์•˜๋‹ค.(๋„์ปค์‚ฌ์šฉ)

      • ์™„์ „ ์ƒˆ๋กœ์šด ์„œ๋ฒ„๊ฐ€ ์•„๋‹ˆ๋ผ, ์ด๋ฏธ ๋‹ค๋ฅธ ์šฉ๋„๋กœ ์‚ฌ์šฉ์ค‘์ธ ์„œ๋ฒ„๋ฅผ ๊ฑด๋“œ๋ ค์•ผ ํ–ˆ๋‹ค..

      • ๊ทธ๋ž˜์„œ ๋‚ด ๋งˆ์Œ๋Œ€๋กœ ๋ฆฌ๋ˆ…์Šค ๋ฒ„์ ผ์„ ์—…๋ฐ์ดํŠธ ํ•˜์ง€๋„ ๋ชปํ•˜๊ณ , ์ด๊ฒƒ์ €๊ฒƒ ์‹คํ—˜ํ•ด ๋ณผ ์ˆ˜๊ฐ€ ์—†์–ด์„œ, ๋ฏธ๋ฆฌ ์‹ค์ œ ์„œ๋ฒ„์™€ ๋น„์Šทํ•œ ํ™˜๊ฒฝ์„ ๋งŒ๋“ค์–ด์„œ ํ…Œ์ŠคํŠธ ํ•œ ๋’ค์—, ์‹ค์ œ ์„œ๋ฒ„์— ์—…๋กœ๋“œ ํ•ด ๋ณด๊ธฐ๋กœ ํ•˜์˜€๋‹ค.

      • ๋ฆฌ๋ˆ…์Šค๊ฐ€ ํ•„์š”ํ• ๋•Œ๋Š” ์ฃผ๋กœ ๊ฐ€์ƒ๋จธ์‹ ์„ ์ด์šฉํ–ˆ๋Š”๋ฐ, ์ด๋ฒˆ์—๋Š” ํ•ซํ•˜๋‹ค๋Š” ๋„์ปค๋ฅผ ์ด์šฉํ•ด ๋ณด์•˜๋‹ค.

      • ๋„์ปค์˜ ์„ค์น˜์™€ ๊ตฌ๋™์€ ๊ฐ€์ƒ๋จธ์‹ ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ ๋ณด๋‹ค ํ›จ์”ฌ ๋น ๋ฅด๊ณ , ๊ฐ€๋ฒผ์› ์ง€๋งŒ.. gui๋ฅผ ๋ณผ ์ˆ˜ ์—†๋‹ค๋Š” ๊ฒƒ์ด ์–ด๋ ค์› ๋‹ค ใ… ใ… (๋‚˜์˜ ํ•œ๊ณ„..)

      • ์—ฌ๋Ÿฌ๊ฐœ์˜ ํ„ฐ๋ฏธ๋„์€ ์–ด๋–ป๊ฒŒ ๋„์›Œ์•ผ ํ•˜๋Š”์ง€๋„..

      • ๊ทธ๋ž˜์„œ ๋„์ปค ์—ฌ๋Ÿฌ๊ฐœ๋กœ ์‹คํ—˜ ํ•ด ๋ณด๊ณ , ๋‚˜์—๊ฒŒ ์ต์ˆ™ํ•œ ๊ฐ€์ƒ๋จธ์‹ ์œผ๋กœ ๋Œ์•„์™”๋‹ค.

    • ๋ฐฐํฌ(์•„ํŒŒ์น˜, mod-wsgi)

      • ์žฅ๊ณ ๋Š” python manage.py runserver๋ผ๋Š” ๋ช…๋ น์–ด๊ฐ€ ์žˆ์ง€๋งŒ, ์ด๊ฑฐ๋Š” ํ…Œ์ŠคํŠธ ์šฉ์ด์ง€ ๋ฐฐํฌ์šฉ์œผ๋กœ๋Š” ์‚ฌ์šฉํ•˜์ง€ ๋ง์•„๋‹ฌ๋ผ๋Š” ๊ฒฝ๊ณ ๋ฌธ๊ตฌ๊ฐ€ ์žˆ๋‹ค.

      • ๊ทธ๋ž˜์„œ ๋ณดํ†ต ์•„ํŒŒ์น˜์™€ ์—ฐ๋™ํ•ด์„œ ์‚ฌ์šฉํ•˜๋Š”๋ฐ, ์ด ์—ฐ๋™ ๋ถ€๋ถ„์—์„œ ์กฐ๊ธˆ ์• ๋จน์—ˆ๋‹ค. ์™œ๋ƒํ•˜๋ฉด ๊ธฐ์กด์˜ ํšŒ์‚ฌ์—์„œ ์žฅ๊ณ ๋ฅผ ๋ฐฐํฌํ•˜์‹  ๋ถ„๊ณผ ๋ธ”๋กœ๊ฑฐ๋“ค์˜ ๋ฐฉ๋ฒ•์ด ๋‹ฌ๋ž๊ธฐ ๋•Œ๋ฌธ..!

      • ๊ทธ๋ถ„๊ป˜ ์—ฐ๋ฝ์„ ๋“œ๋ ค ์–ด๋–ป๊ฒŒ ํ•œ์ง€ ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋‚ด์—ˆ๋‹ค.

      • ์•„๋ž˜ ๊ธ€์€ ๊ณต์‹ pip install mod-wsgi ์„ค๋ช… ํŽ˜์ด์ง€์—์„œ ๊ฐ€์ ธ์™”๋‹ค.

      • ๋Œ€๋ถ€๋ถ„์˜ ๋ธ”๋กœ๊ทธ๋Š” ์ฒซ๋ฒˆ์งธ ๋ฐฉ์‹์œผ๋กœ ์—ฐ๋™ํ–ˆ๊ณ , ํšŒ์‚ฌ ๋‚ด์—์„œ๋Š” ๋‘๋ฒˆ์งธ ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์—ˆ๋‹ค. ๋‘๋ฒˆ์งธ ๋ฐฉ๋ฒ•์˜ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ๋Š” documentation์— ์ž˜ ๋‚˜์™€์žˆ์—ˆ๋‹ค. ( https://pypi.org/project/mod-wsgi/ )

Installation of mod_wsgi from source code can be performed in one of two ways.
The first way of installing mod_wsgi is the traditional way that has been used by many software packages. This is where it is installed as a module directly into your Apache installation using the commands configure, make and make install, a method sometimes referred to by the acronym CMMI. This method works with most UNIX type systems. It cannot be used on Windows.
The second way of installing mod_wsgi is to install it as a Python package into your Python installation using the Python pip install command. This can be used on all platforms, including Windows.
This second way of installing mod_wsgi will compile not only the Apache module for mod_wsgi, but will also install a Python module and admin script, which on UNIX type systems can be used to start up a standalone instance of Apache directly from the command line with an auto generated configuration.
๋ฐ˜์‘ํ˜•

'Today I Learnd' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

2020.02.23(์ผ)-์กธ์—…ํ”„๋กœ์ ํŠธ, ํŠนํ—ˆ  (0) 2020.02.23
2020-01-07  (0) 2020.01.07
2019.11.6(์ˆ˜)  (0) 2019.11.06
2019.10.31 (์ˆ˜)  (0) 2019.10.31
2019-10-30(์ˆ˜)  (0) 2019.10.30