Building Websites with Django
Build and Deploy Professional Websites with Python Programming and the Django Framework (English Edition)
Awanish Ranjan
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Building Websites with Django
Build and Deploy Professional Websites with Python Programming and the Django Framework (English Edition)
Awanish Ranjan
About This Book
A beginner's guide that will help you get familiar with Django for web development. Key Features
- Learn to build websites with a strong blend of concepts and practical learning.
- Set up your public website with advanced functionalities from scratch.
- Explore Django architecture, components, navigation panel and templates.
Description
'Building Websites with Django' book teaches readers to develop their high-quality, feature-rich website by learning Django and its various tools. You will learn the best techniques to develop a dynamic website, right from scratch. This book focuses not only on just creating a particular application but rather develops a strong understanding of theoretical concepts with rich examples. You will learn to troubleshoot errors, develop navigation panels and add advanced functionalities like deploying on heroku server. You will read about models, templates, different types of views. You will learn to create apps and learn how to integrate different apps.
By the end of this book, You will create a project from scratch and will deploy it as a public website by yourself. What you will learn
- Create a Django project from scratch and deploy them as a public website.
- Work with Django components such as Model, View, and Template.
- Interact with the database using Query Sets.
- Deploy your Django application for free on Heroku.
- Learn how to use Django's built-in authentication and authorization module effectively.
Who this book is for
This book is for early entrepreneurs, beginners, software professionals, bloggers and hobbyists who want to create their online presence on their own without having any prior technical knowledge about web tools. Table of Contents
1. Introduction to Django
2. An Overview of the MTV Architecture
3. Understanding Django Settings
4. Django Admin Utility
5. Interacting with the Database using Query Sets
6. Enhancing your Project
7. Understanding Models
8. Django Views
9. Django Templates
10. URL and Regex
11. Forms in Django
12. Setting up a Project
13. The Account app
14. The Genre app
15. The Post app
16. Deploying the Website
About the Author
After completing his engineering in 2015, Awanish started working with one of the largest IT companies.
He began with scripting and then developed ETL tools and web applications using Django. He is now working on a Content Management System based on Django CMS.In his free time, Awanish delivers guest lectures at training institutes and develops training videos for e-learning sites. LinkedIn Profile: https://www.linkedin.com/in/awanishranjan/
Frequently asked questions
Information
CHAPTER 1
What is Django?
Introduction
Structure
- What is a framework?
- Why do we need a web framework?
- What are some famous web frameworks?
- Is learning Django worth it?
- What is a virtual environment?
- How to create and use a virtual environment?
- How to install Django?
- How to create a Django project?
- Overview of your Django project files
Objectives
- Understanding the concept of frameworks.
- Understanding the need for frameworks.
- Familiarizing with the benefits of Django.
- Understanding the concept of virtual environments.
- Learning to install Django.
- Creating a Django project
- Understanding of the file system of Django
Django overview
What is a framework?
Why do we need a framework?
- It sets an industry-recognized software design structure. If every developer uses different designs, then it becomes difficult for the software owner or the client to maintain the software once the initial developer leaves the project. Thus, using a framework ensures that a standard design is followed.
- Re-writing code for common functionalities that are already available in frameworks does not make sense. Also, frameworks allow us to modify the functionalities as per our needs. So, customization is easy.
- The frameworks have been present for quite some time and extensively tested by developers worldwide, issues are reported, and bug fixes are continuously rolled. This ensures the software is bug-free.
- The frameworks keep updating with new features as the technology advances. Using a framework keeps your software updated. If you choose not to use a framework, then it becomes the developerâs responsibility to keep the software updated with the latest technology advancements.
What are some famous web frameworks?
- Flask: Flask is a web application framework written in Python. Flask is based on the WSGI toolkit and Jinja2 template engine.
- Ruby on Rails: Ruby on Rails is a productive web application framework based on Ruby. One can develop an application at least quite faster with Rails than a typical Java framework.
- Angular: Angular is a framework on JavaScript by Google which helps us in building powerful web apps. It is a framework to build large scale and high-performance web applications while keeping them as easy-to-maintain.
- ASP.NET: ASP.NET is a framework developed by Microsoft, which helps us to build robust web applications for PCs, as well as mobile devices. It is a high-performance and lightweight framework for building web applications using .NET.
- Spring: Spring is the most popular application development framework for enterprise Java. Developers around the globe use Spring to create high-performance and robust web apps.
- PLAY: Play is one of the modern web application frameworks written in Java and Scala. It follows the MVC architecture and aims to optimize the developerâs productivity by using convention over configuration, hot code reloading, and display of errors in the browser.