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
AngularJS and Django - Meetup Django CH #19
Search
Gregory Favre
January 23, 2014
Programming
2
180
AngularJS and Django - Meetup Django CH #19
What is AngularJS, how is it different from django and how can they combine.
Gregory Favre
January 23, 2014
Tweet
Share
More Decks by Gregory Favre
See All by Gregory Favre
Déploiement d'un projet Django
gfavre
0
30
Other Decks in Programming
See All in Programming
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
930
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
250
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
cmp.Or に感動した
otakakot
3
200
CSC509 Lecture 12
javiergs
PRO
0
160
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
890
役立つログに取り組もう
irof
28
9.6k
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Statistics for Hackers
jakevdp
796
220k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
A Philosophy of Restraint
colly
203
16k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Rails Girls Zürich Keynote
gr2m
94
13k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Happy Clients
brianwarren
98
6.7k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Transcript
https:// www.djangoproject.com/s/img/ logos/django-logo-positive.png A marriage of convenience? —
AngularJS • Full featured Single Page Application framework • Well
documented and widely used Forks (GitHub) 0 1500 3000 4500 6000 Angular.js ackbone Em ber.js Knockout Questions (Stack overflow) 0 6000 12000 18000 24000 Angular.js ackbone Em ber.js Knockout
Key features • MVVM framework 㱺 2-way data binding •
Templating • Dependency injection
Demo Business card template https://gist.github.com/gfavre/8594894
MVVM $scope View Controller Django: template Django: view Django: context
+ forms Routes Django: urls.py Django: app Module
Integration with Django • AngularJS does not provide a ORM
• AngularJS and Django will clash: • templates: {{ }} • urls.py vs routes • Different philosophies / coding practices
Solution Angular django-rest-framework or tastypie Django DB JSON
Tips ! • Template symbol clash app.config(function($interpolateProvider{ $interpolateProvider.startSymbol(‘{%’); $interpolateProvider.endSymbol(‘%}’); }]);"
• Minify problem .controller('ctrl1', ["$scope", function($scope){…}
Not solved yet • i18n (same .po?) • urls are
hardcoded in my js
Demo More complex UI https://github.com/gfavre/sportfac