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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
61
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
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
270
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
610
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
600
CSC307 Lecture 06
javiergs
PRO
0
680
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
680
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
220
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
160
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
540
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
560
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
CSC307 Lecture 05
javiergs
PRO
0
500
Featured
See All Featured
Evolving SEO for Evolving Search Engines
ryanjones
0
120
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Language of Interfaces
destraynor
162
26k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Test your architecture with Archunit
thirion
1
2.1k
The SEO Collaboration Effect
kristinabergwall1
0
350
Building a Scalable Design System with Sketch
lauravandoore
463
34k
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
Exploring anti-patterns in Rails
aemeredith
2
250
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
79
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
180
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 ???