Skip to content

PacktPublishing/Web-Development-with-Django-Second-Edition

Repository files navigation

Web Development with Django - Second Edition

This is the code repository for Web Development with Django - Second Edition, published by Packt.

A definitive guide to building modern Python web applications using Django 4

What is this book about?

Do you want to develop reliable and secure applications that stand out from the crowd without spending hours on boilerplate code? You’ve made the right choice trusting the Django framework, and this book will tell you why. Often referred to as a “batteries included” web development framework, Django comes with all the core features needed to build a standalone application. Web Development with Django will take you through all the essential concepts and help you explore its power to build real-world applications using Python.

This book covers the following exciting features:

  • Create a new application and add models to describe your data
  • Use views and templates to control behavior and appearance
  • Implement access control through authentication and permissions
  • Develop practical web forms to add features such as file uploads
  • Build a RESTful API and JavaScript code that communicates with it
  • Connect to a database such as PostgreSQL

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

from django.http import HttpResponse
from django.views import View

class IndexView(View):
    
    def get(self, request):
        return HttpResponse("Hey there!")

Following is what you need for this book: This book is for programmers looking to enhance their web development skills using the Django framework. To fully understand the concepts explained in this book, basic knowledge of Python programming as well as familiarity with JavaScript, HTML, and CSS is assumed.

With the following software and hardware list you can run all code files present in the book (Chapter 1-16).

Software and Hardware List

Chapter Software required OS required
1-16 Python 3.8 Windows, macOS, or Linux
1-16 Django 4.0 Windows, macOS, or Linux
1-16 React 16 Windows, macOS, or Linux

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Errata

  • Page 136, Exercise 3.03 (code snippet number 2, for the "bookr/reviews/views.py code): The function book_search should be book_list

Get to Know the Authors

Ben Shaw is a software engineer based in Auckland, New Zealand. He has worked as a developer for over 16 years and has been building websites with Django since 2007. In that time, his experience has helped many diff erent types of companies, ranging in size from start-ups to large enterprises. He is also interested in machine learning, data science, automating deployments, and DevOps. When not programming, Ben enjoys outdoor sports and spending time with his partner and son.

Saurabh Badhwar is an infrastructure engineer who works on building tools and frameworks that enhance developer productivity. A major part of his work involves using Python to develop services that scale to thousands of concurrent users. He is currently employed at LinkedIn and works on infrastructure performance tools and services.

Chris Guest is based in Melbourne and started programming in Python 24 years ago when it was an obscure academic language. He has since used his Python knowledge in the publishing, hospitality, medical, academic, and fi nancial sectors. Th roughout his career, he has worked with many Python web development frameworks, including Zope, TurboGears, web2py, and Flask, although he still prefers Django.

Bharath Chandra K S is a passionate soft ware developer with over 14 years of experience in the industry, currently residing in Sydney, Australia. He specializes in Python stack development, including frameworks such as Flask and Django, and has extensive experience with both monolithic and microservice architectures. Bharath has developed various public-facing applications and data processing backend systems. When not creating soft ware, he enjoys cooking delicious food.

Other books by the authors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages