Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Django: Web Framework for Perfectionists
Search
Sibi
June 08, 2013
Programming
0
100
Django: Web Framework for Perfectionists
Sibi
June 08, 2013
Tweet
Share
More Decks by Sibi
See All by Sibi
Just
psibi
0
58
Nix/NixOS
psibi
0
88
Rust
psibi
2
280
OPA for policy enforcement
psibi
0
45
Rust + Credstash
psibi
0
39
ASG and lifecycle hooks
psibi
0
19
Haskell + Azure Pipelines
psibi
0
43
Web programming in Haskell using Yesod
psibi
0
78
Monad
psibi
1
150
Other Decks in Programming
See All in Programming
ISUCONってなんだか難しそう……!!でも、初めてのISUCONにPHPで挑戦してきました!
kotomin_m
1
300
実践!RDRAを活用した既存システムの仕様変更 / Specification Changes in Existing Systems Utilizing RDRA
imamotohikaru
0
2.1k
どうしてこうなった命名集 ~🔥編~ / OOC 2024 LT
pictiny
4
2.7k
DDDはなぜ難しいのか / 良いコードの定義と設計能力の壁
pospome
24
6.9k
「コンパイル時のユニットテスト」導入するとユニットテストを 書かなくてよくなるのか?
tomohisa
9
2.1k
[スクリプト] Swiftの型推論を学ぼう
omochi
0
110
Data Contracts In Practice With Debezium and Apache Flink (Kafka Summit London)
gunnarmorling
2
270
自作ソフト(VMagicMirror)がVRMA対応してる話+実装のTips
bakudreameater
0
110
とにかくHTTP3をライトニングに話す / Anyway, I'll talk to Lightning about HTTP3.
seike460
PRO
0
120
WasmOS: Wasmを実行する自作Microkernel
riru
0
370
上手な探索的テストとその上達方法について
matsu802
4
650
PHP で読む楽しいコアダンプ
sji
0
240
Featured
See All Featured
Building an army of robots
kneath
300
41k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
19
1.6k
Clear Off the Table
cherdarchuk
82
310k
Imperfection Machines: The Place of Print at Facebook
scottboms
257
12k
Typedesign – Prime Four
hannesfritz
36
2k
jQuery: Nuts, Bolts and Bling
dougneiner
57
7.1k
We Have a Design System, Now What?
morganepeng
42
6.7k
For a Future-Friendly Web
brad_frost
170
8.9k
How GitHub Uses GitHub to Build GitHub
holman
467
290k
The Pragmatic Product Professional
lauravandoore
24
5.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
319
23k
The Brand Is Dead. Long Live the Brand.
mthomps
48
21k
Transcript
DJANGO: Web Framework for Perfectionists
Formal boring Introduction Equipped with: ORM Administration Site Development tools
Templates Form Validation Authentication Pluggable ...
Ladies And Gentlemen • Start your project, by this command:
django-admin.py startproject project_name • Some new files are generated: – __init__.py – manage.py – settings.py – urls.py
Create your application within your Project • python manage.py startapp
app_name • Include your app in the project by modifying settings.py
Models ???
Models... (2) • Ok, it's not related to fashion models.
• Model refers to the data access layer ( database) • Example of a django model: class post(models.Model): author = models.CharField(max_length = 30) title = models.CharField(max_length = 300) bodytext = models.TextField()
Connecting DB to your Django Project • Alter settings.py •
python manage.py syncdb
Some tweaking • STATICFILES_DIRS • TEMPLATE_DIRS
MTV ??? (Sigh.. bear with me)
MTV (2)...
Thank You! • Find the demo code at https://github.com/psibi/ilugc-talk-django •
Contact mail:
[email protected]
• QUESTIONS ???