Python Web Development with Django

Python Web Development with Django

Jeff Forcier, Paul Bissex

utilizing the easy, powerful, Python-based Django framework, you could construct strong internet options with remarkably few strains of code. In Python net improvement with Django®, 3 skilled Django and Python builders conceal all of the strategies, instruments, and ideas you want to utilize Django 1.0, together with all of the significant good points of the hot unlock.


The authors educate Django via in-depth motives, plus supply large pattern code supported with photographs and line-by-line motives. You’ll detect how Django leverages Python’s improvement velocity and adaptability that can assist you resolve a large spectrum of net improvement difficulties and study Django most sensible practices coated nowhere else. You’ll construct your first Django software in precisely mins and deepen your real-world abilities via start-to-finish software tasks including

  • Simple internet log (blog)
  • Online picture gallery
  • Simple content material administration procedure
  • Ajax-powered dwell blogger
  • Online resource code sharing/syntax highlighting instrument
  • How to run your Django functions at the Google App Engine


This whole consultant starts off through introducing Python, Django, and net improvement recommendations, then dives into the Django framework, delivering a deep realizing of its significant elements (models, perspectives, templates), and the way they arrive jointly to shape entire net functions. After a dialogue of 4 self reliant operating Django purposes, assurance turns to complex subject matters, equivalent to caching, extending the template method, syndication, admin customization, and checking out. useful reference appendices conceal utilizing the command-line, fitting and configuring Django, improvement instruments, exploring current Django functions, the Google App Engine, and the way to get extra concerned with the Django community.



Introduction 1


Part I: Getting Started

Chapter 1: functional Python for Django 7

Chapter 2: Django for the Impatient: development a weblog 57

Chapter three: beginning Out 77


Part II: Django in Depth

Chapter four: Defining and utilizing types 89

Chapter five: URLs, HTTP Mechanisms, and perspectives 117

Chapter 6: Templates and shape Processing 135


Part III: Django functions through Example

Chapter 7: picture Gallery 159

Chapter eight: content material administration procedure 181

Chapter nine: Liveblog 205

Chapter 10: Pastebin 221


Part IV: complex Django strategies and Features

Chapter eleven: complicated Django Programming 235

Chapter 12: complicated Django Deployment 261


Part V: Appendices

Appendix A: Command Line fundamentals 285

Appendix B: fitting and operating Django 295

Appendix C: instruments for sensible Django improvement 313

Appendix D: discovering, comparing, and utilizing Django functions 321

Appendix E: Django at the Google App Engine 325

Appendix F: getting concerned within the Django undertaking 337


Index 339

Colophon 375

Show sample text content

Download sample