没有合适的资源?快使用搜索试试~ 我知道了~
首页Pro Django, 2nd Edition.pdf
资源详情
资源评论
资源推荐

WOW! eBook
www.wowebook.org

For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
WOW! eBook
www.wowebook.org

v
Contents at a Glance
About the Author �������������������������������������������������������������������������������������������������������������� xvii
About the Technical Reviewers ����������������������������������������������������������������������������������������� xix
Acknowledgments ������������������������������������������������������������������������������������������������������������� xxi
Preface ���������������������������������������������������������������������������������������������������������������������������� xxiii
Introduction ���������������������������������������������������������������������������������������������������������������������� xxv
Chapter 1: Understanding Django ■ ��������������������������������������������������������������������������������������1
Chapter 2: Django Is Python ■ ��������������������������������������������������������������������������������������������11
Chapter 3: Models ■ �����������������������������������������������������������������������������������������������������������41
Chapter 4: URLs and Views ■ ����������������������������������������������������������������������������������������������83
Chapter 5: Forms ■ �����������������������������������������������������������������������������������������������������������107
Chapter 6: Templates ■ �����������������������������������������������������������������������������������������������������131
Chapter 7: Handling HTTP ■ ����������������������������������������������������������������������������������������������157
Chapter 8: Backend Protocols ■ ���������������������������������������������������������������������������������������175
Chapter 9: Common Tools ■ ����������������������������������������������������������������������������������������������201
Chapter 10: Coordinating Applications ■ ��������������������������������������������������������������������������225
Chapter 11: Enhancing Applications ■ �����������������������������������������������������������������������������247
Index ���������������������������������������������������������������������������������������������������������������������������������267
WOW! eBook
www.wowebook.org

xxv
Introduction
Pro Django represents seven years of accumulated knowledge in Python and Django, designed to educate readers
who are already familiar with both topics and would like to take them further than they had previously done. You will
learn a wide range of advanced techniques available in both Python and Django, along with tips on how to use them
to achieve advanced functionality.
is book is designed to be both a narrative to be read from start to nish and a general reference to be searched
for specic information. Since you may not know what to look for or where to nd it yet, feel free to read through the
book rst, then keep it handy for refreshing your memory as necessary.
What This Book Is Not
ere are plenty of resources available for learning Python and Django, so this book does not strive to teach the basics.
For readers new to Python, I highly recommend Dive Into Python 3 by Mark Pilgrim (Apress, 2009). For learning
Django, I’d recommend e Denitive Guide to Django: Web Development Done Right by Adrian Holovaty and
Jacob Kaplan-Moss (Second Edition, Apress, 2009). Additionally, Practical Django Projects by James Bennett
(Second Edition, Apress, 2009) is an excellent resource for general application development.
Who This Book Is For
Because Pro Django doesn’t dwell on introductory details, readers will be expected to have experience with both
Python and Django. If you’re new to either subject, please consider one of the books mentioned in the previous
section before trying to tackle this book.
Even if you’ve only experimented on your own without launching a full site yet, a basic familiarity should be
sucient. You don’t need to be an expert to start reading Pro Django, but you might be by the time you nish.
Interpreting Code Samples
Pro Django uses a simple format, interleaving explanations of Python’s and Django’s available features with code that
demonstrates their use in the real world. ere are two types of code samples used, which dier in how they should be
executed.
Python’s interactive interpreter is a great way to test out small pieces of code and see how it works in a variety
of situations. Lines of code intended for use in that environment will always be prexed with three characters: three
greater-than signs (>>>) or three periods (. . .). Lines with greater-than signs are the outermost block of code, while
the period-prexed lines are indented at least one level. e three initial characters are also followed by a space. ese
rst four characters are not typed into the interactive interpreter directly; they simply mimic what the interpreter itself
looks like by reproducing its output.
WOW! eBook
www.wowebook.org

■ IntroduCtIon
xxvi
A line started with three periods but containing no other text indicates that you should simply press Enter on a
blank line in the interpreter. is completes any open code blocks, bringing you back to the >>> prompt. Any lines that
don’t begin with either >>> or . . . represent the output of the code or the result of the previous expression.
>>> import django
>>> django.get_version()
'1.5.1'
e rst line of an interactive example will always begin with >>>; everything else is code that should be written
in a le and executed as part of a running Django application. e surrounding text will indicate what le the code
should be placed in and how it will execute.
Prerequisites
Pro Django is written for Django 1.5, which was released on February 26, 2013. at release or a more recent clone of
the Django code repository is required for the code samples to work properly. Since Django in turn relies on Python,
these examples also assume a working Python environment of version 2.7 or higher. Most of the code examples
are written with Python 3.3 in mind, but there are capability notes available where older versions diverge from the
examples shown.
WOW! eBook
www.wowebook.org
剩余289页未读,继续阅读



















大自然的搬運工
- 粉丝: 7
- 资源: 35
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- ARM Cortex-A(armV7)编程手册V4.0.pdf
- ABB机器人保养总结解析.ppt
- 【超详细图解】菜鸡如何理解双向链表的python代码实现
- 常用网络命令的使用 ipconfig ping ARP FTP Netstat Route Tftp Tracert Telnet nslookup
- 基于单片机控制的DC-DC变换电路
- RS-232接口电路的ESD保护.pdf
- linux下用time(NULL)函数和localtime()获取当前时间的方法
- Openstack用户使用手册.docx
- KUKA KR 30 hA,KR 60 hA机器人产品手册.pdf
- Java programming with JNI
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0