๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ป Deep Wide Programming/Django

[ํด๋ก ์ฝ”๋”ฉโ›บ๏ธ] #2 INTRODUCTION TO DJANGO

728x90
๋ฐ˜์‘ํ˜•

๐Ÿ“ŒCreating a Django Project 

์ด์–ด์„œ, ๊ฐ™์€ ํŒŒ์ผ/๊ฐœ๋ฐœํ™˜๊ฒฝ ๋‚ด์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž…๋ ฅ

django-admin startproject config 

django-admin startproject config . (๋์— .์„ ๋ถ™์ด๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ์ ˆ์ฐจ ํ•˜์ง€ ์•Š์•„๋„ ๋˜๋Š”๋“ฏ.,?)

๊ทธ๋Ÿฌ๋ฉด ์œ„์™€ ๊ฐ™์€ ํŒŒ์ผ๋“ค์ด ์ƒ์„ฑ๋œ๋‹ค. ํด๋”๋ช…์„ ๋ณ€๊ฒฝํ•ด์ค€๋‹ค. 

๊ทธ๋ฆฌ๊ณ  ๊ทธ ์•ˆ์— ๋“ค์–ด์žˆ๋˜ configํด๋”์™€ manage.py๋ฅผ ๋ฐ–์œผ๋กœ ๊บผ๋‚ธ๋‹ค. ๊ทธ๋ฆฌ๊ณ ๋‚˜์„œ Aconfig ํด๋”๋Š” ์ง€์šด๋‹ค. 

ํ•˜๋‹จ์—์„œ ๋ฒ„์ „์ด pipenv๊ฐ€ ํฌํ•จ๋œ ๋ฒ„์ „์ธ์ง€ ํ™•์ธํ•˜๊ณ  ๋ณ€๊ฒฝํ•ด์ค€๋‹ค. 

 

 

๐Ÿ“ŒSetting up VSCode and Python Like a PRO

 

 

Linting Python in Visual Studio Code

Linting Python in Visual Studio Code

code.visualstudio.com

vscode ํด๋”์˜ setting.jsonํŒŒ์ผ๊ณผ, pipfile์—์„œ flake8์ด ์„ค์น˜๋œ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. 

 

๐Ÿ‘‰์ž…๋ ฅ๋œ ์ฝ”๋“œ๋ฅผ ์˜ˆ์˜๊ฒŒ ์ •๋ฆฌํ•ด์ฃผ๋Š”๊ฒƒ : formatter (์—ฌ๋Ÿฌ ์ข…๋ฅ˜ ์ค‘์—์„œ, black์„ ์„ค์น˜ํ•˜๋ ค ํ•œ๋‹ค.)

pipenv install black --dev --pre    

ํฌ๋งคํ„ฐ๋ฅผ ์ด์šฉํ•œ ์ฝ”๋“œ ์ •๋ฆฌ์— ๊ด€ํ•œ ์ฐธ๊ณ  ๊ธ€!

www.daleseo.com/python-black/

 

Black์œผ๋กœ ํŒŒ์ด์ฌ ์ฝ”๋“œ ์Šคํƒ€์ผ ํ†ต์ผํ•˜๊ธฐ

Engineering Blog by Dale Seo

www.daleseo.com

์˜ค๋ฅ˜๊ฐ€ ๋– ์„œ.. ๋‹ค์Œ ์ž๋ฃŒ๋ฅผ ์ฐธ๊ณ ํ•ด black์„ ํ™œ์„ฑํ™”์‹œ์ผฐ๋‹ค. 

medium.com/@marcobelo/setting-up-python-black-on-visual-studio-code-5318eba4cd00

 

Setting up python Black on Visual Studio Code

To setup python black as a formatter for VS-Code workspace you need to install it on your virtual env or in your local python with the…

medium.com

๊ทผ๋ฐ ์ž‘๋™์ด ์—ฌ์ „ํžˆ ์•ˆ๋จ.....ใ… ใ… 

 

 

+ ๋ˆ„๊ฐ€ ์žฅ๊ณ  ์„ธํŒ… ์ž˜ ์ •๋ฆฌํ•ด๋†“์Œ..

ggodong.tistory.com/201?category=850857

728x90
๋ฐ˜์‘ํ˜•