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
31
Other Decks in Programming
See All in Programming
[JAWS-UG横浜 #79] re:Invent 2024 の DB アップデートは Multi-Region!
maroon1st
1
140
密集、ドキュメントのコロケーション with AWS Lambda
satoshi256kbyte
0
180
How mixi2 Uses TiDB for SNS Scalability and Performance
kanmo
30
11k
『品質』という言葉が嫌いな理由
korimu
0
160
SwiftUIで単方向アーキテクチャを導入して得られた成果
takuyaosawa
0
260
Amazon Bedrock Multi Agentsを試してきた
tm2
1
280
SpringBoot3.4の構造化ログ #kanjava
irof
2
970
Writing documentation can be fun with plugin system
okuramasafumi
0
120
Formの複雑さに立ち向かう
bmthd
1
720
[JAWS-UG横浜 #80] うわっ…今年のServerless アップデート、少なすぎ…?
maroon1st
1
170
プログラミング言語学習のススメ / why-do-i-learn-programming-language
yashi8484
0
120
SRE、開発、QAが協業して挑んだリリースプロセス改革@SRE Kaigi 2025
nealle
3
4.1k
Featured
See All Featured
Building Applications with DynamoDB
mza
93
6.2k
The Cost Of JavaScript in 2023
addyosmani
47
7.3k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
What's in a price? How to price your products and services
michaelherold
244
12k
Six Lessons from altMBA
skipperchong
27
3.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
GitHub's CSS Performance
jonrohan
1030
460k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
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