Book Image

Learning Django Web Development

By : Sanjeev Jaiswal, Ratan Kumar
Book Image

Learning Django Web Development

By: Sanjeev Jaiswal, Ratan Kumar

Overview of this book

<p>Django, written in Python, is a web application framework designed to build complex web applications quickly without any hassle. It loosely follows the MVC pattern and adheres to the Don't Repeat Yourself principle, which makes a database-driven application efficient and highly scalable, and is by far the most popular and mature Python web framework.</p> <p>This book is a manual that will help you build a simple yet effective Django web application. It starts by introducing Django, setting it up, and shows you how to code simple programs. You will then learn to build your first Twitter-like app. Later on, you will be introduced to Hashtags, AJAX to enhance the user interface, and tweets. You will then move on to create an administration interface, learn database connectivity, and use third-party libraries. Then you will learn to debug and deploy Django projects, and also get a glimpse of Django with AngularJS and Elasticsearch. By the end of the book, you will be able to leverage the Django framework to develop a fully functional web application with minimal effort.</p>
Table of Contents (22 chapters)
Learning Django Web Development
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using an AJAX framework in Django


As we have already used Bootstrap in our project, we need not configure it separately for AJAX and jQuery.

There are many advantages of using an AJAX framework:

  • JavaScript implementations vary from browser to browser. Some browsers provide more complete and feature-rich implementations, whereas others contain implementations that are incomplete or don't adhere to standards.

    Without an AJAX framework, developers must keep track of browser support for the JavaScript features that they are using and must work around the limitations that are present in some browsers for the implementation of JavaScript.

    On the other hand, when using an AJAX framework, the framework takes care of this for us; it abstracts access to the JavaScript implementation and deals with the differences and quirks of JavaScript across browsers. This way, we can concentrate on developing features instead of worrying about browser differences and limitations.

  • The standard set of JavaScript functions...