Django for Beginners: Build Websites with Python and Django / Django для начинающих: Создавайте веб-сайты с помощью Python и Django Год издания: 2022 Автор: Vincent William / Винсент Уильям Издательство: Leanpub ISBN: 978-1735467207 Язык: Английский Формат: PDF, EPUB Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 306 Описание: Django for Beginners is a project-based introduction to Django, the popular Python-based web framework. Suitable for total beginners who have never built a website before as well as professional programmers looking for a fast-paced guide to modern web development and Django fundamentals. In the book you’ll learn how to: Build 5 websites from scratch, including a Blog and Newspaper website Deploy online using security best practices Customize the look and feel of your sites Write tests and run them for all your code Integrate user authentication, email, and custom user models Add permissions and authorizations to make your app more secure Identify common mistakes and errors so you can build your own websites If you’re curious about Python-based web development, Django for Beginners is a best-practices guide to writing and deploying your own websites quickly. Django для начинающих - это основанное на проекте введение в Django, популярном веб-фреймворке на базе Python. Подходит для начинающих, которые никогда раньше не создавали веб-сайт, а также для профессиональных программистов, ищущих быстро развивающееся руководство по современной веб-разработке и основам Django. В книге вы узнаете, как: Создайть 5 веб-сайтов с нуля, включая блог и сайт газеты Развернуть в режиме онлайн с использованием передовых методов обеспечения безопасности Настроить внешний вид вашего сайта Писать тесты и запускать их для всего вашего кода Интегрировать аутентификацию пользователя, электронную почту и пользовательские модели пользователей Добавьте разрешения и авторизацию, чтобы сделать ваше приложение более безопасным Определять распространенные ошибки, чтобы вы могли создавать свои собственные веб-сайты Если вам интересна веб-разработка на основе Python, Django для начинающих - это руководство по быстрому написанию и развертыванию ваших собственных веб-сайтов.
Примеры страниц
Оглавление
Introduction 1 Why Django 1 Why This Book 2 Prerequisites 3 Book Structure 3 Book Layout 4 Advice on Getting Stuck 5 Community 6 Conclusion 6 Chapter 1: Initial Set Up 7 The Command Line 7 Shell Commands 9 Install Python 3 on Windows 12 Install Python 3 on Mac 13 Python Interactive Mode 14 Virtual Environments 14 Install Django 17 First Django Project 19 Text Editors 22 Install Git 23 Conclusion 25 Chapter 2: Hello World App 26 Initial Set Up 26 CONTENTS HTTP Request/Response Cycle 32 Model-View-Controller vs Model-View-Template 33 Create An App 34 Hello, World 36 Git 40 GitHub 42 SSH Keys 43 Conclusion 44 Chapter 3: Pages App 45 Initial Set Up 45 Templates 48 Class-Based Views 49 URLs 50 About Page 51 Extending Templates 53 Tests 55 Git and GitHub 60 Local vs Production 62 Heroku 62 Deployment Checklist 64 Conclusion 69 Chapter 4: Message Board App 70 Initial Set Up 70 Create a Database Model 73 Activating models 74 Django Admin 75 Views/Templates/URLs 80 Adding New Posts 83 Tests 84 GitHub 88 Heroku Configuration 89 CONTENTS Heroku Deployment 90 Conclusion 91 Chapter 5: Blog App 92 Initial Set Up 92 Database Models 95 Admin 96 URLs 100 Views 101 Templates 102 Static Files 104 Individual Blog Pages 109 Tests 113 Git 117 Conclusion 118 Chapter 6: Forms 119 CreateView 119 UpdateView 125 DeleteView 129 Tests 134 Conclusion 136 Chapter 7: User Accounts 137 Log In 137 Updated Homepage 140 Log Out Link 141 Sign Up 144 Sign Up Link 149 GitHub 150 Static Files 151 Heroku Config 154 Heroku Deployment 155 CONTENTS SQLite vs PostgreSQL 156 Conclusion 157 Chapter 8: Custom User Model 158 Initial Set Up 158 Custom User Model 159 Forms 161 Superuser 164 Conclusion 168 Chapter 9: User Authentication 169 Templates 169 URLs 172 Admin 176 Tests 181 Conclusion 183 Chapter 10: Bootstrap 184 Pages App 184 Tests 187 Testing Philosophy 188 Bootstrap 188 Sign Up Form 193 Conclusion 198 Chapter 11: Password Change and Reset 199 Password Change 199 Customizing Password Change 200 Password Reset 203 Custom Templates 207 Try It Out 210 Conclusion 212 Chapter 12: Email 213 CONTENTS SendGrid 213 Custom Emails 220 Conclusion 222 Chapter 13: Newspaper App 223 Articles App 223 URLs and Views 227 Detail/Edit/Delete 231 Create Page 237 Conclusion 242 Chapter 14: Permissions and Authorization 243 Improved CreateView 243 Authorizations 245 Mixins 247 LoginRequiredMixin 249 UpdateView and DeleteView 251 Conclusion 253 Chapter 15: Comments 254 Model 254 Admin 255 Template 264 Comment Form 268 Comment View 269 Comment Template 270 Comment Post View 272 Conclusion 277 Chapter 16: Deployment 278 Environment Variables 279 DEBUG & ALLOWED HOSTS 281 SECRET_KEY 284 CONTENTS DATABASES 285 Static Files 287 Deployment Checklist 289 GitHub 291 Heroku Deployment 291 Conclusion 294 Conclusion 295 Next Steps 295 3rd Party Packages 296 Learning Resources 296 Python Books 297 Feedback 297
Vincent William / Винсент Уильям - Django for Beginners: Build Websites with Python and Django / Django для начинающих: Создавайте веб-сайты с помощью Python и Django [2022, PDF, EPUB, ENG] download torrent for free and without registration
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum