没有合适的资源?快使用搜索试试~ 我知道了~
Lightweight Django 无水印pdf
5星 · 超过95%的资源 需积分: 10 21 下载量 114 浏览量
2017-10-03
18:37:44
上传
评论
收藏 3.89MB PDF 举报
温馨提示
Lightweight Django 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
资源推荐
资源详情
资源评论
Julia Elman & Mark Lavin
Lightweight
Django
USING REST, WEBSOCKETS & BACKBONE
PYTHONWEB DEVELOPMENT
Lightweight Django
ISBN: 978-1-491-94594-0
US $39.99 CAN $41.99
“
A great resource for
going beyond traditional
apps and learning how
Django can power the
backend of single-page
web applications.
”
—Aymeric Augustin
Django core developer, CTO, oscaro.com
“
Such a good idea—I think
this will lower the barrier
of entry for developers
even more… the more
I read, the more excited
I am!
”
—Barbara Shaurette
Python Developer, Cox Media Group
Twitter: @oreillymedia
facebook.com/oreilly
How can you take advantage of the Django framework to integrate complex
client-side interactions and real-time features into your web applications?
Through a series of rapid application development projects, this hands-on
book shows experienced Django developers how to include REST APIs,
WebSockets, and client-side MVC frameworks such as Backbone.js into
new or existing projects.
Learn how to make the most of Django’s decoupled design by choosing
the components you need to build the lightweight applications you want.
Once you finish this book, you’ll know how to build single-page applications
that respond to interactions in real time. If you’re familiar with Python and
JavaScript, you’re good to go.
■ Learn a lightweight approach for starting a new Django project
■ Break reusable applications into smaller services that
communicate with one another
■ Create a static, rapid prototyping site as a scaold for websites
and applications
■ Build a REST API with django-rest-framework
■ Learn how to use Django with the Backbone.js MVC framework
■ Create a single-page web application on top of your REST API
■ Integrate real-time features with WebSockets and the Tornado
networking library
■ Use the book’s code-driven examples in your own projects
Julia Elman, a frontend developer and tech education advocate, started learning
Django in 2008 while working at World Online. She is one of the co-founders for
Girl Develop It RDU and PyLadies RDU, organizations that have helped over 850
women learn to program.
Mark Lavin is Technical Director at Caktus Consulting Group in Durham, North
Carolina. He came to Python web development after years of pricing derivatives
on Wall Street. Mark maintains several open source projects related to Django
development.
Lightweight Django
Elman & Lavin
Julia Elman & Mark Lavin
Lightweight
Django
USING REST, WEBSOCKETS & BACKBONE
Julia Elman and Mark Lavin
Lightweight Django
Lightweight Django
by Julia Elman and Mark Lavin
Copyright © 2015 Julia Elman and Mark Lavin. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editor: Meghan Blanchette
Production Editor: Colleen Lobner
Copyeditor: Rachel Monaghan
Proofreader: Sonia Saruba
Indexer: Wendy Catalano
Cover Designer: Ellie Volckhausen
Interior Designer: David Futato
Illustrator: Rebecca Demarest
November 2014:
First Edition
Revision History for the First Edition:
2014-10-24: First release
See http://oreilly.com/catalog/errata.csp?isbn=9781491945940 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Lightweight Django, the cover image, and
related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark
claim, the designations have been printed in caps or initial caps.
While the publisher and the authors have used good faith efforts to ensure that the information and in‐
structions contained in this work are accurate, the publisher and the authors disclaim all responsibility for
errors or omissions, including without limitation responsibility for damages resulting from the use of or
reliance on this work. Use of the information and instructions contained in this work is at your own risk. If
any code samples or other technology this work contains or describes is subject to open source licenses or
the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies
with such licenses and/or rights.
ISBN: 978-1-491-94594-0
LSI
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
1. The World’s Smallest Django Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Hello Django 1
Creating the View 2
The URL Patterns 2
The Settings 3
Running the Example 4
Improvements 5
WSGI Application 6
Additional Configuration 7
Reusable Template 10
2. Stateless Web Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Why Stateless? 13
Reusable Apps Versus Composable Services 14
Placeholder Image Server 14
Views 16
URL Patterns 16
Placeholder View 17
Image Manipulation 18
Adding Caching 20
Creating the Home Page View 23
Adding Static and Template Settings 23
Home Page Template and CSS 24
Completed Project 26
iii
剩余244页未读,继续阅读
资源评论
- 真的CK2018-03-09非常好的版本,无水印,带彩色字体,目录
yinkaisheng-nj
- 粉丝: 762
- 资源: 6231
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功