更新时间:2021-06-25 21:19:53
封面
版权信息
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Building a Blog Application
Installing Django
Creating an isolated Python environment
Installing Django with pip
Creating your first project
Running the development server
Project settings
Projects and applications
Creating an application
Designing the blog data schema
Activating your application
Creating and applying migrations
Creating an administration site for your models
Creating a superuser
The Django administration site
Adding your models to the administration site
Customizing the way models are displayed
Working with QuerySet and managers
Creating objects
Updating objects
Retrieving objects
Using the filter() method
Using exclude()
Using order_by()
Deleting objects
When QuerySets are evaluated
Creating model managers
Building list and detail views
Creating list and detail views
Adding URL patterns for your views
Canonical URLs for models
Creating templates for your views
Adding pagination
Using class-based views
Summary
Enhancing Your Blog with Advanced Features
Sharing posts by email
Creating forms with Django
Handling forms in views
Sending emails with Django
Rendering forms in templates
Creating a comment system
Creating forms from models
Handling ModelForms in views
Adding comments to the post detail template
Adding the tagging functionality
Retrieving posts by similarity
Extending Your Blog Application
Creating custom template tags and filters
Creating custom template tags
Creating custom template filters
Adding a sitemap to your site
Creating feeds for your blog posts
Adding full-text search to your blog
Installing PostgreSQL
Simple search lookups
Searching against multiple fields
Building a search view
Stemming and ranking results
Weighting queries
Searching with trigram similarity
Other full-text search engines
Building a Social Website
Creating a social website project
Starting your social website project
Using the Django authentication framework
Creating a login view
Using Django authentication views
Login and logout views
Changing password views
Resetting password views
User registration and user profiles
User registration
Extending the user model
Using a custom user model
Using the messages framework
Building a custom authentication backend
Adding social authentication to your site
Authentication using Facebook
Authentication using Twitter