Building Websites with Django: Build and deploy professional websites with Python programming and the Django framework
- Length: 242 pages
- Edition: 1
- Language: English
- Publisher: BPB Publications
- Publication Date: 2021-02-16
- ISBN-10: 9389328284
- ISBN-13: 9789389328288
- Sales Rank: #1708209 (See Top 100 Books)
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.
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/
Cover Page Title Page Copyright Page Dedication Page About the Author Acknowledgement Preface Errata Table of Contents 1. What is Django? Introduction Structure Objectives Django overview What is a framework? Why do we need a 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 Conclusion Questions 2. Overview of MVT Architecture Introduction Structure Objectives What is architecture? What is MVT? What are models in Django’s MVT? What are Views in Django’s MVT? What are Templates in Django’s MVT? Conclusion Questions 3. Understanding Django Settings Introduction Structure Objectives Exploring some common settings Core settings Authentication Static files Conclusion Questions 4. The Django Admin Utility Introduction Structure Objectives Admin page of your Django project Creating an app Editing models.py, settings.py, and admin.py Adding data to your database Editing data in your database Conclusion Questions 5. Interacting with the Database Using Query Sets Introduction Structure Objectives ORM overview Query sets Adding elements to your database Manipulating elements of your database Deleting elements of your database Conclusion Questions 6. Enhancing Your Project Introduction Structure Objectives Understanding requirements Making Models Creating views Configuring urls.py Making templates Testing Conclusion Questions 7. Understanding Models Introduction Structure Objectives Introduction to models Model fields Field options Meta options Model methods Relationship between models Connecting models Conclusion Questions 8. Django Views Structure Objectives Introduction Types of views Function-based views Class-based views When to use class and function-based views Built-in class-based views Base view View Templateview RedirectView Generic views List view Detail view Conclusion Questions 9. Django Templates Structure Objectives Introduction Configuration Template inheritance Django Templating Language Syntax Conclusion Questions 10. URLs and Regex Structure Objectives Introduction Functions available in URLconfs Regex Writing a regex for different url-functions url/re_path() path() Conclusion Questions 11. Forms in Django Structure Objectives Introduction Building basic forms Fetching data entered in the forms Form fields and arguments Form field arguments Form fields Form validation Model forms Conclusion Questions 12. Setting Up Project Structure Objectives Introduction Setting up the project Updating the settings.py options Testing Enhancing the project Creating superuser Conclusion Questions 13. The Account App Introduction Structure Objective Difference between authentication and authorization Django’s built-in authentication module - auth The User model of the auth module The PermissionMixin model of the auth module models.py forms.py views.py urls.py settings.py Templates Testing Conclusion Questions 14. The Genre App Introduction Structure Objective models.py admin.py views.py urls.py Templates Testing Conclusion Questions 15. The Posts App Introduction Structure Objective models.py views.py forms.py urls.py Templates Testing Conclusion Questions 16. Deploying the Website Introduction Structure Objective Deployment configurations in the project Setting up Heroku Conclusion Questions Index
Donate to keep this site alive
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.