The document discusses best practices for writing better front-end code when building applications with Django. It recommends grouping the front-end code together, using tools like Bower, Sass, Grunt, and NPM to help structure the code. It also suggests using a full-stack JavaScript framework like Ember on the front-end to communicate with the Django backend through a REST API. Proper project organization and front-end tooling are emphasized to develop the front-end as its own coherent project.
Do-good crowd funding
Django vereniging
I confess: PHP
Django. Yeah!
1% Crowd-funding projects with social impact.
Setting up an Internet café in Uganda
Solar lights Nigeria
Boat for disabled people in The Netherlands
Others want a platform like that too
“Corporate social responsibility”
Booking.com
Accenture
Municipalities of Gent, Breda ..
Product manager
django-tenant-schemas
Migration of data
Merging of code / features
Re-building your house
...with current tenants still in
Let me show the changes we had to make...
Ah...
This it the site before the refactor
… and after
We did it!
Just minor changes
everything running as it should
Chongqing
Mobile apps are now easier to interact
Traditional websites are lagging behind!
Let's look at a typical Django project
Create a project calles True Beauty
Add templates and front-end code to apps
Let's hear what Daniel & Audrey
have to say about this.
Two scoops of Django
As of last month when 1.8 came out
Let's look at an opinionated list
Browsers are very powerful today.
Full stack.
So MVC inside your browser.
API
JSON data
Only talk to the server when
- new data needed
- write data
Easy to write integration tests against API
Fast development.
Not slowed down by designs and front-enders.
Easy to mock an API
Fast development
Not slowed down by back-end devs always over-complicating things.
Easy to demo
Also deploys can be separate
(if no API schema changes)
Ember CLI
Remember django-admin?
Quick synopsis to get you started writing better front-end code.