Django - The Easy Way (2nd Edition) - DocDroid

 Django - The Easy Way (2nd Edition)

A step-by-step guide on building Django websites

Samuli Natri ? 2017 - 2018 Samuli Natri

Table of Contents

Preface

About this book

Who is this book for? What this book is NOT about? How this book is organized

Chapters 1-7 Chapters 8-10 Chapters 11-13 Chapters 14-16 Chapters 17-20 Chapters 21-24 Chapters 25-26 Chapters 27-28 Chapters 29-32

About the author

1. Installing Python on Windows

1.1 Downloading and installing Python 1.2 Using the interactive prompt 1.3 Details

1.3.1 Python interpreter

1.4 Summary

2. Installing Python on macOS

2.1 Downloading and installing Python 2.2 Using the interactive prompt 2.3 Details

2.3.1 Python interpreter

2.4 Summary

3. Installing Python on Linux

3.1 Installing Python 3.2 Using the interactive prompt 3.3 Details

3.3.1 Python interpreter

3.4 Summary

4. Creating virtual environments in Windows

4.1 Creating and activating virtual environments 4.2 Summary

5. Creating virtual environments in macOS

5.1 Creating and activating virtual environments 5.2 Summary

6. Creating virtual environments in Linux

6.1 Creating and activating virtual environments 6.2 Summary

7. Virtual environments and pip

7.1 Why use virtual environments? 7.2 Details

7.2.1 Organizing folders 7.2.2 Freezing requirements 7.2.3 Excluding venv from the repository 7.2.4 Using other tools 7.2.5 Using python vs python3

7.3 Summary

8. Creating a Django project

8.1 Setup 8.2 Creating a new Project 8.3 Running the development server 8.4 Details 8.5 Summary

9. Creating a Hello World app

9.1 Setup 9.2 Creating apps 9.3 Creating template files 9.4 Creating views 9.5 Adding a homepage path 9.6 Summary

10. Examining the project structure and apps

10.1 Adding features with apps 10.2 Exploring the project structure 10.3 Exploring the project package

10.4 Summary

11. Working with template inheritance

11.1 Setup 11.2 Creating a base app 11.3 Extending templates 11.4 Details 11.5 Summary

12. Installing Bootstrap 4 theme

12.1 Setup 12.2 Modifying an existing template 12.3 Updating the homepage template 12.4 Details 12.5 Summary

13. Managing static files

13.1 Setup 13.2 Creating a stylesheet file 13.3 Details

13.3.1 Working with static files 13.3.2 Using the static tag 13.3.3 Forcing cache refresh with versioning

13.4 Summary

14. Creating models

14.1 Setup 14.2 Creating the Flower model 14.3 Listing flowers 14.4 Details

14.4.1 Explaining models 14.4.2 Returning a string representation 14.4.3 Making database queries

14.5 Summary

15. Creating a base project

15.1 Setup 15.2 Adding a description field 15.3 Adding masonry like columns 15.4 Adding a footer 15.5 Summary

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download