SlideShare a Scribd company logo
Web
Tim
• Django backend framework
• Django
•
• npm gem bower
• makefile grunt gulp
•
Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索
• .css
• CSS Framework
• bootstrap, materialize, semantic ui …
<html>
<head>
<!— style —>
</head>
<body>
<!— html —>
</body>
</html>
Bootstrap
Frontend django, Django Web 前端探索
css
1. css static
2. template link tag css
static
• Django :
• app static css
• STATICFILES_DIRS css
CSS
•
•
• ...
SASS
• Ruby
• mixin
SASS
Compass
• function
susy
• grid system
• bootstrap grid
libsass
python.org
•
• Vagrant ( sass )
• sass/compass
• susy ( will be removed )
base.html
• python css
• style.css
• mq.css
sass css
cd static
sass --compass --scss -I $(dirname $(dirname $(gem
which susy))) --trace --watch sass/style.scss:sass/
style.css
• style.scss
• mq.scss mq media query
style.scss
style.scss
how python.org
responsive?
Django project
Dependency
• vagrant , dependency
• Makefile
• libsass
• bower
• requirejs
Makefile
• syntax
•
Makefile
# Makefile
run:

python manage.py runserver 0.0.0.0:8000
make run run server
libsass
• !
• builtin watch
• watchmedo shell-command --patterns=*.scss --
recursive --command="make compile-scss-debug"
$(SCSS)
• make watch-scss ~~~
js dependency
• dependecny
• django bower js. js commit
repo
• ( pip + virtualenv bower,
bower )
requirejs
• js
• requirejs ...
• django project base.html
• Open Source Project
•

More Related Content

What's hot (20)

PDF
Sass
Bram Verdyck
 
PDF
20111129 modernizr
brooky-yen
 
PDF
Padrino is agnostic
Takeshi Yabe
 
PDF
JimdoのTips
Hiromitsu Miyanishi
 
PDF
Css sprite_maker-1
lokku
 
PPTX
Managing responsive websites with css preprocessors.
The University of Akron
 
PPTX
Web design v roku 2013
vibration.sk
 
PDF
Turbo theming: Introduction to Sass & Compass
Almog Baku
 
PDF
Adobe Source 2016 - Styleguides and AEM
Michael Leroy
 
PDF
Biological Modelling, Powered by AngularJS
Gil Fink
 
PDF
CSS Custom Properties (aka CSS Variable)
Geoffrey Croftє
 
PPT
CSS előfeldolgozók
Máté Farkas
 
PPS
Introduction to Bootstrap: Design for Developers
Melvin John
 
PPTX
Bootstrap Framework
Yaowaluck Promdee
 
PPTX
Making Web Fun
Rajasekar Murugan
 
PDF
Steve Barman - CSS and WordPress
Anthony Montalbano
 
PDF
Welcome! RGBA
Even Wu
 
PDF
Biological Modeling, Powered by AngularJS
Gil Fink
 
PPT
Object oriented css graeme blackwood
drupalconf
 
PDF
Tech talk on Tailwind CSS
Squareboat
 
20111129 modernizr
brooky-yen
 
Padrino is agnostic
Takeshi Yabe
 
JimdoのTips
Hiromitsu Miyanishi
 
Css sprite_maker-1
lokku
 
Managing responsive websites with css preprocessors.
The University of Akron
 
Web design v roku 2013
vibration.sk
 
Turbo theming: Introduction to Sass & Compass
Almog Baku
 
Adobe Source 2016 - Styleguides and AEM
Michael Leroy
 
Biological Modelling, Powered by AngularJS
Gil Fink
 
CSS Custom Properties (aka CSS Variable)
Geoffrey Croftє
 
CSS előfeldolgozók
Máté Farkas
 
Introduction to Bootstrap: Design for Developers
Melvin John
 
Bootstrap Framework
Yaowaluck Promdee
 
Making Web Fun
Rajasekar Murugan
 
Steve Barman - CSS and WordPress
Anthony Montalbano
 
Welcome! RGBA
Even Wu
 
Biological Modeling, Powered by AngularJS
Gil Fink
 
Object oriented css graeme blackwood
drupalconf
 
Tech talk on Tailwind CSS
Squareboat
 

Viewers also liked (20)

PDF
開放資料與 Drupal
Charles Chuang
 
PPTX
從廢柴到成材 - 那 20 個 sprints 教會我們的事 C.C Agile #40
diro fan
 
PDF
改變行為的設計:一些理論
Vivian Chen
 
PDF
第一次用 Vue.js 就愛上 [改]
Kuro Hsu
 
PDF
自從學會Sass / Compass後,考試都考100分!
洧杰 廖
 
PDF
智慧行動App跨國推廣經驗談 by 天橋科技
Amos Lee
 
PDF
Web前端性能优化 2014
Yubei Li
 
PDF
專業前端 都如何管理 CSS
Chih-cheng Wang
 
PDF
Git 版本控制 (使用教學)
Jui An Huang (黃瑞安)
 
PDF
漫談 CSS 架構方法 - 以 OOCSS, SMACSS, BEM 為例
Kuro Hsu
 
PPTX
浅谈电商网站数据访问层(DAL)与 ORM 之适用性
Xuefeng Zhang
 
PDF
Sublime text 極速應用教學
Amos Lee
 
PPTX
使用 Visual Studio Code 建構 JavaScript 應用程式
Will Huang
 
PDF
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)
William Liang
 
PPT
Drupal 簡介 - 20080718 自由軟體解決方案研討會
Charles Chuang
 
PPTX
The 'Liking' Principle in User Interface Design
Sharon Kwan
 
PDF
政府資料開放加值應用 - 兩年回顧
Charles Chuang
 
PDF
Python的50道陰影
Tim (文昌)
 
PDF
公益報告書 - 網絡行動科技有限公司 2015 年
Charles Chuang
 
PDF
高雄前端社群 #3 SASS workshop
洧杰 廖
 
開放資料與 Drupal
Charles Chuang
 
從廢柴到成材 - 那 20 個 sprints 教會我們的事 C.C Agile #40
diro fan
 
改變行為的設計:一些理論
Vivian Chen
 
第一次用 Vue.js 就愛上 [改]
Kuro Hsu
 
自從學會Sass / Compass後,考試都考100分!
洧杰 廖
 
智慧行動App跨國推廣經驗談 by 天橋科技
Amos Lee
 
Web前端性能优化 2014
Yubei Li
 
專業前端 都如何管理 CSS
Chih-cheng Wang
 
Git 版本控制 (使用教學)
Jui An Huang (黃瑞安)
 
漫談 CSS 架構方法 - 以 OOCSS, SMACSS, BEM 為例
Kuro Hsu
 
浅谈电商网站数据访问层(DAL)与 ORM 之适用性
Xuefeng Zhang
 
Sublime text 極速應用教學
Amos Lee
 
使用 Visual Studio Code 建構 JavaScript 應用程式
Will Huang
 
智慧應用與物聯網發展趨勢 (A Development Trend of Smart Applications and IoT)
William Liang
 
Drupal 簡介 - 20080718 自由軟體解決方案研討會
Charles Chuang
 
The 'Liking' Principle in User Interface Design
Sharon Kwan
 
政府資料開放加值應用 - 兩年回顧
Charles Chuang
 
Python的50道陰影
Tim (文昌)
 
公益報告書 - 網絡行動科技有限公司 2015 年
Charles Chuang
 
高雄前端社群 #3 SASS workshop
洧杰 廖
 
Ad

Similar to Frontend django, Django Web 前端探索 (20)

PDF
SASS, Compass, Gulp, Greensock
Marco Pinheiro
 
KEY
Authoring Stylesheets with Compass & Sass
chriseppstein
 
PPTX
Syntactically Awesome Stylesheet - A workshop by Citytech Software
Ritwik Das
 
PDF
Web Frontend development: tools and good practices to (re)organize the chaos
Matteo Papadopoulos
 
PPTX
Syntactically awesome stylesheets (Sass)
Tahmina Khatoon
 
PDF
SMACSS Your Sass Up
Mina Markham
 
PPTX
BDUG Responsive Web Theming - 7/23/12
ucbdrupal
 
PDF
Create a landing page
Fabien Vauchelles
 
PDF
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...
Aidan Foster
 
PPTX
Using Sencha Touch to build Cross-platform HTML5 Apps - FITC Screens 2011
Mukul Seth
 
PPTX
FITC Screens 2011 Presentation - Using Sencha Touch to build Cross-platform H...
Nathaniel Bagnell
 
PPTX
Beginning CSS.
dhruvgairola
 
PDF
Fasten RWD Development with Sass
Sven Wolfermann
 
PDF
Rapid Prototyping with Sass, Compass and Middleman by Bermon Painter
Codemotion
 
PDF
Front-End Frameworks: a quick overview
Diacode
 
PDF
Newfangeldy Front End Stuff For People Who Last Touched It Back When Grunge W...
Angela Byron
 
PDF
Mobile and Responsive Design with Sass
nyccamp
 
PDF
From CSS to Sass in WordPress
James Steinbach
 
KEY
Sass compass
Nick Cooley
 
PDF
Workshop 6: Designer tools
Visual Engineering
 
SASS, Compass, Gulp, Greensock
Marco Pinheiro
 
Authoring Stylesheets with Compass & Sass
chriseppstein
 
Syntactically Awesome Stylesheet - A workshop by Citytech Software
Ritwik Das
 
Web Frontend development: tools and good practices to (re)organize the chaos
Matteo Papadopoulos
 
Syntactically awesome stylesheets (Sass)
Tahmina Khatoon
 
SMACSS Your Sass Up
Mina Markham
 
BDUG Responsive Web Theming - 7/23/12
ucbdrupal
 
Create a landing page
Fabien Vauchelles
 
Responsive Themeing With Aurora Theme, SASS, and BEM Syntax (Drupal Camp Toro...
Aidan Foster
 
Using Sencha Touch to build Cross-platform HTML5 Apps - FITC Screens 2011
Mukul Seth
 
FITC Screens 2011 Presentation - Using Sencha Touch to build Cross-platform H...
Nathaniel Bagnell
 
Beginning CSS.
dhruvgairola
 
Fasten RWD Development with Sass
Sven Wolfermann
 
Rapid Prototyping with Sass, Compass and Middleman by Bermon Painter
Codemotion
 
Front-End Frameworks: a quick overview
Diacode
 
Newfangeldy Front End Stuff For People Who Last Touched It Back When Grunge W...
Angela Byron
 
Mobile and Responsive Design with Sass
nyccamp
 
From CSS to Sass in WordPress
James Steinbach
 
Sass compass
Nick Cooley
 
Workshop 6: Designer tools
Visual Engineering
 
Ad

More from Tim (文昌) (8)

PDF
Profile django
Tim (文昌)
 
PDF
Introduction to protocol buffer
Tim (文昌)
 
PDF
I18n
Tim (文昌)
 
PDF
Mock Introduction
Tim (文昌)
 
PDF
Ml weka
Tim (文昌)
 
PDF
Tainan.py, Experience about package
Tim (文昌)
 
PPTX
Performance Enhancement Tips
Tim (文昌)
 
KEY
pygame sharing pyhug
Tim (文昌)
 
Profile django
Tim (文昌)
 
Introduction to protocol buffer
Tim (文昌)
 
Mock Introduction
Tim (文昌)
 
Ml weka
Tim (文昌)
 
Tainan.py, Experience about package
Tim (文昌)
 
Performance Enhancement Tips
Tim (文昌)
 
pygame sharing pyhug
Tim (文昌)
 

Recently uploaded (20)

PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 

Frontend django, Django Web 前端探索