Getting started with Django
- Length: 137 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2014-06-16
- ISBN-10: 1783983701
- ISBN-13: 9781783983704
- Sales Rank: #3376235 (See Top 100 Books)
Develop simple web applications with the powerful Django framework
Overview
- Get to know MVC pattern and the structure of Django
- Create your first webpage with Django mechanisms
- Enable user interaction with forms
- Program extremely rapid forms with Django features.
- Explore the best practices to develop applications of a superior quality
In Detail
Django is a powerful Python web framework designed for rapid web application development. With the advent of frameworks such as Django, web developers have been forced to adopt MVC architectures and are encouraged to develop quality code. This quality allows several developers to work together easily and reduces the number of bugs due to human errors.
Beginning with the basics of the Web and Django, the book explains the MVC pattern. It then moves on to explain the step-by-step installation of Python, PIP, and Django on Windows, Linux, and Mac OS. Furthermore, you will learn how to create templates, models, forms, and so on. After reading the book, you will be able to quickly create dynamic web applications with AJAX and an admin part.
This book features a step-by-step approach that shows you how to program, create, and improve the quality of web applications using Django, with the help of Python.
What you will learn from this book
- Utilize the MVC pattern to create web applications
- Use Django models to store information in the database and generate queries to access a database across models
- Generate very maintainable forms with Django
- Quickly develop web pages to create, read, update, and delete data from the model using class-based views
- Construct users by using an authentication module to restrict access to certain pages
- Use AJAX with Django
- Install your website on Linux and access it through the Internet
Approach
This book features a step-by-step approach that shows you how to program, create, and improve the quality of web applications using Django, with the help of Python.
Who this book is written for
This is an ideal book for developers who want to improve the quality and maintenance of their web application, and who already have knowledge of Python and web development.
Table of Contents
Chapter 1: Django’s Position on the Web
Chapter 2: Creating a Django Project
Chapter 3: Hello World! with Django
Chapter 4: Working with Templates
Chapter 5: Working with Models
Chapter 6: Getting a Model’s Data with Querysets
Chapter 7: Working with Django Forms
Chapter 8: Raising Your Productivity with CBV
Chapter 9: Using Sessions
Chapter 10: The Authentication Module
Chapter 11: Using AJAX with Django
Chapter 12: Production with Django