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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Sibi
June 08, 2013
Programming
0
120
Django: Web Framework for Perfectionists
Sibi
June 08, 2013
Tweet
Share
More Decks by Sibi
See All by Sibi
Just
psibi
0
88
Nix/NixOS
psibi
0
120
Rust
psibi
2
320
OPA for policy enforcement
psibi
0
60
Rust + Credstash
psibi
0
73
ASG and lifecycle hooks
psibi
0
48
Haskell + Azure Pipelines
psibi
0
74
Web programming in Haskell using Yesod
psibi
0
160
Monad
psibi
1
180
Other Decks in Programming
See All in Programming
Fragmented Architectures
denyspoltorak
0
150
CSC307 Lecture 03
javiergs
PRO
1
490
CSC307 Lecture 02
javiergs
PRO
1
770
Oxlintはいいぞ
yug1224
5
1.3k
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.8k
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
150
CSC307 Lecture 07
javiergs
PRO
0
550
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
MUSUBIXとは
nahisaho
0
130
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
660
Featured
See All Featured
Accessibility Awareness
sabderemane
0
49
The Spectacular Lies of Maps
axbom
PRO
1
520
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
RailsConf 2023
tenderlove
30
1.3k
Making Projects Easy
brettharned
120
6.6k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
83
How to Ace a Technical Interview
jacobian
281
24k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
Faster Mobile Websites
deanohume
310
31k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
36k
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 ???