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
110
Django: Web Framework for Perfectionists
Sibi
June 08, 2013
Tweet
Share
More Decks by Sibi
See All by Sibi
Just
psibi
0
68
Nix/NixOS
psibi
0
98
Rust
psibi
2
290
OPA for policy enforcement
psibi
0
49
Rust + Credstash
psibi
0
48
ASG and lifecycle hooks
psibi
0
27
Haskell + Azure Pipelines
psibi
0
52
Web programming in Haskell using Yesod
psibi
0
100
Monad
psibi
1
170
Other Decks in Programming
See All in Programming
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
780
情報漏洩させないための設計
kubotak
5
1.2k
Kaigi on Railsに初参加したら、その日にLT登壇が決定した件について
tama50505
0
140
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
510
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
170
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
600
Androidアプリの One Experience リリース
nein37
0
710
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
200
php-conference-japan-2024
tasuku43
0
410
Monixと常駐プログラムの勘どころ / Scalaわいわい勉強会 #4
stoneream
0
320
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
1.3k
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
390
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Site-Speed That Sticks
csswizardry
2
220
The World Runs on Bad Software
bkeepers
PRO
66
11k
Making Projects Easy
brettharned
116
6k
The Invisible Side of Design
smashingmag
299
50k
4 Signs Your Business is Dying
shpigford
182
21k
How to train your dragon (web standard)
notwaldorf
88
5.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Agile that works and the tools we love
rasmusluckow
328
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 ???