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
Free Django!
Search
Eugene Oskin
January 20, 2018
Programming
75
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Free Django!
Eugene Oskin
January 20, 2018
More Decks by Eugene Oskin
See All by Eugene Oskin
Local Models for Coding
evgeneoskin
0
16
REST API. Django, Ruby on Rails, Play! Framework
evgeneoskin
0
100
Introduction to gRPC
evgeneoskin
0
110
GrailInventory – Advanced Backend Development
evgeneoskin
0
48
Bracing Calculator
evgeneoskin
1
76
emotional intelligence, part 2
evgeneoskin
0
49
Office temperature
evgeneoskin
0
45
Parse platform
evgeneoskin
0
110
Hubot
evgeneoskin
0
61
Other Decks in Programming
See All in Programming
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.6k
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
2k
エージェンティックRAGにAWSで入門しよう!
har1101
9
1.9k
Performance Engineering for Everyone
elenatanasoiu
0
260
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
15
3.1k
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.9k
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
120
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
260
初めてのKubernetes 本番運用でハマった話
oku053
0
120
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
360k
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
290
SREは、MCPとSRE Agentをこう使え!
kazumax55
0
150
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
340
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Designing Powerful Visuals for Engaging Learning
tmiket
1
440
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
340
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
150
How to make the Groovebox
asonas
2
2.3k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Documentation Writing (for coders)
carmenintech
77
5.4k
Marketing to machines
jonoalderson
1
5.6k
Done Done
chrislema
186
16k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Transcript
Free Django! WEB service
Plan • Diving inside Backend • Django basics • Django
REST Framework • Simple Django app
Diving inside Backend In software engineering, front end (frontend) and
back end (backend) distinguish between the separation of concerns between the presentation layer (the front end) – which is the interface between the user – and the data access layer (the back end).
Diving inside Backend • Basic Architecture • Top 3 projects
overview • Why Django?
• LAMP ◦ Linux – OS ◦ Apache – web
(also nginx) ◦ MySQL – database (also postgres) ◦ PHP – frontend + backend (also Django, Ruby on Rails) Basic Architecture
Basic Architecture • LAMP • MEAN ◦ MongoDB – database
◦ Express.js – web ◦ Angular.js – frontend ◦ Node.js – backend
Top 3 projects overview • Django
Top 3 projects overview • Django • Ruby On Rails
Top 3 projects overview • Django • Ruby On Rails
• Express.js
Why Django? • Fast development
Why Django? • Fast development • Strong community
Why Django? • Fast development • Strong community • Secure
Why Django? • Fast development • Strong community • Secure
• Featured
Why Django? • Fast development • Strong community • Secure
• Featured • Like Ruby on Rails, but Django
Django basics • Structure • Where to find Applications? •
Django MVC
Structure • project/ ◦ manage.py # entrypoint ◦ mysite/ #
dir with site staff ▪ __init__.py ▪ settings.py # site settings ▪ urls.py # URL declarations ▪ wsgi.py # entry-point for WSGI-compatible
Structure • project/pet/ ▪ __init__.py ▪ migrations/ • __init__.py ▪
models.py ▪ tests.py ▪ views.py # Contollers ▪ urls.py # app URL declarations
Where to find Applications? • Django packages • GitHub •
In your Company
MVC → Django MVC • Model → Model • Controller
→ View • View → Template
Django REST Framework • Features ◦ Great architecture ◦ Easy
to add to an existed project ◦ Plenty of existed apps
Django REST Framework • Features • Usage ◦ Install ◦
Add Router ◦ Add ViewSet ◦ Add Serializers ◦ Add Tests
Django REST Framework • Features • Usage • Profit ◦
Termius ◦ Look
Simple Django app • How to start (Do it!): ◦
Install python and pip
Simple Django app • How to start (Do it!): ◦
Install python and pip ◦ https://docs.djangoproject.com/en/2.0/intro/install/
Simple Django app • How to start (Do it!): ◦
Install python and pip ◦ https://docs.djangoproject.com/en/2.0/intro/install/ ◦ https://docs.djangoproject.com/en/2.0/intro/tutorial01/
Simple Django app • How to start (Do it!): ◦
Install python and pip ◦ https://docs.djangoproject.com/en/2.0/intro/install/ ◦ https://docs.djangoproject.com/en/2.0/intro/tutorial01/ ◦ Run localserver
Simple Django app • How to start (Do it!) •
My sample • https://github.com/EvgeneOskin/animals-drf
Summary • Diving inside Backend • Django basics • Django
REST Framework • Simple Django app
References • http://bit.ly/lamp-wiki • https://www.djangoproject.com/ • https://docs.djangoproject.com/en/2.0/intro/install/ • https://docs.djangoproject.com/en/2.0/intro/tutorial01/ •
http://django-rest-framework.org/ • http://djangopackages.com/ • https://github.com/EvgeneOskin/animals-drf • http://www.intenct.nl/projects/django-allauth/
Advices • Do not use aggregations in admin page! •
Add a crash reporter (eg. Sentry) and track your app version! • Have a strong deployment process! • Do not run datamigrations in service start!