Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Flask 소수전공 강의자료 - 1차시
Search
jangjunha
April 10, 2018
Programming
63
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Flask 소수전공 강의자료 - 1차시
2017 선린인터넷고등학교 파이썬 웹 프레임워크 / Flask 소수전공 강의자료
jangjunha
April 10, 2018
Other Decks in Programming
See All in Programming
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
970
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
180
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
1.6k
[2026-10-14](C)Re:ゼロから始める異世界生活〜始まりの終わりと終わりの始まり〜
tosite
0
100
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
140
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
770
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.9k
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
A Tale of Four Properties
chriscoyier
163
24k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
The Invisible Side of Design
smashingmag
301
52k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Designing for Performance
lara
612
70k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
New Earth Scene 8
popppiees
4
2.7k
For a Future-Friendly Web
brad_frost
184
10k
Transcript
'MBTL❤ੌ ۄझद jangjunha<
[email protected]
>
↟ ࢶܽੋఠ֔Ҋ١Үࠁాनҗઔস ↟ /FHPߔূ٘ѐߊѐਘױӝঌ߄ ↟ Ҋ۰Үஹೊఠҗ ↟ 48.BFTUSPӝোࣻࢤՖ ળೞ GCDPNKBOHKVOIB
KBOHKVOIB!HNBJMDPN ղࣗѐ
None
↟ ਢѐߊীਃೠ୭ࣗೠѪٜ݅ઁҕ )5513FRVFTU 3PVUJOH j ↟ ܲѪٜਃীٮۄ .JDSPGSBNFXPSL
↟ ਢѐߊীਃೠࢎਊغחѪٜਸޘযࢲઁҕ ۽Ӓੋ %#ҙ۲ۄ࠳۞ܻ 'PSN j 'VMMTUBDL'SBNFXPSL
৵ рױೞѱद೧ࢲରӔରӔਢਸ೧೧աоࠁইਃ
ࢸೞӝ ↟ 7JSUVBMFOW ২࣌ ↟ 'MBTL
7JSUVBMFOW $ pip install Flask 'MBTL
7JSUVBMFOW ٣۽ં 'MBTL ৻۽ં 'MBTL $ pip install Flask 'MBTL
7JSUVBMFOW ٣۽ં 'MBTL ৻۽ં 'MBTL 'MBTL 'MBTL
7JSUVBMFOW $ sudo pip install virtualenv $ sudo apt-get install
python-virtualenv .BD04-JOVY 6CVOUV IUUQGMBTLQPDPPPSHEPDTJOTUBMMBUJPOWJSUVBMFOW
$ virtualenv venv New python executable in venv/bin/python Installing setuptools,
pip…………done. $ . venv/bin/activate (venv) $ (venv) $ deactivate $
(venv) $ pip install Flask 'MBTLࢸ
from flask import Flask app = Flask(__name__) @app.route('/') def index():
return 'Hello, World!' if __name__ == '__main__': app.run() )FMMP 8PSME
അਤഛੋ $ pwd /Users/junha/Developer/learn_flask
ੌܻझ $ ls $ ls -al $ ll > dir
٣۩షܻࢤࢿ $ mkdir <٣۩షܻ ܴ>
ੌઁ $ rm <ੌ> $ rm -r <٣۩షܻ> $ rm
-f <ੌ> # ъઁઁ $ rm -rf <٣۩షܻ> # ъઁઁ
प೯ೞӝ $ python helloflask.py * Running on http://127.0.0.1:5000/ (Press CTRL+C
to quit) 127.0.0.1 - - [05/Jan/2017 01:22:30] "GET / HTTP/1.1" 200 -
)551࢚క٘ ٘ ࢸݺ ࢿҕ ܻ۩ ࣻغঋ
ੜޅػਃ ਸࣻহ ࢲߡয়ܨ
if __name__ == '__main__': app.run(host="0.0.0.0", port=8080, debug=True) प೯২䣩 $ python
helloflask.py * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger pin code: 113-537-125 127.0.0.1 - - [05/Jan/2017 01:24:10] "GET / HTTP/1.1" 200 -
3PVUJOH • / • /hello • /user/HeeGyu • /post/1234 string
ठېद(/)ܳ ઁ৻ೠ ఫझ (default) int ࣻ path ఫझ - ठېद(/) ನೣ
ইېп63-ীٮۄܲѾҗܳ۱೧ࠇद • / • /users • /users/HeeGyu • /articles/3254 पण
)5.-ੌѤ֎ӝ render_template('hello.html') /application.py /templates /hello.html /profile.html /static /logo.png /app.js /app.css
మ݁䤐য+JOKB IUUQKJOKBQPDPPPSHEPDT
ਢࢲߡ %# ࢲߡ ࠳ۄ (&5QSPGJMF <html> <h1>ળೞ</h1> <article> <p>ߓҊ</p> </article>
</html>
ੌѤ֎ӝ /application.py /templates /hello.html /profile.html /static /logo.png /app.js /app.css
पण )5.-ੌࣁѐٜܳ݅Ҋ 63-ীٮۄп)5.-ੌਸ೧ࠇद 63- ੌݺ / index.html /users user_list.html
/users/HeeGyu profile.html
पण profile.htmlী۽ࢎਸੑ೧ࠇद
↟ మ݁য +JOKB ↟ ਃؘఠܻ 'PSN ↟ ইрױೠ࠶۽Ӓٜ݅ӝ