DjangoByExample - (EPUB全文下载)
文件大小:9.54 mb。
文件格式:epub 格式。
书籍内容:
Django By Example
Table of Contents
Django By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. 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 QuerySet 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
2. Enhancing Your Blog with Advanced Features
Sharing posts by e-mail
Creating forms with Django
Handling forms in views
Sending e-mails 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 tagging functionality
Retrieving posts by similarity
Summary
3. 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 a search engine with Solr and Haystack
Installing Solr
Creating a Solr core
Installing Haystack
Building indexes
Indexing data
Creating a search view
Summary
4. Building a Social Website
Creating a social website project
Starting your social website project
Using the Django authentication framework
Creating a log-in view
Using Django authentication views
Log in and log out views
Change password views
Reset 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 ............
书籍插图:
以上为书籍内容预览,如需阅读全文内容请下载EPUB源文件,祝您阅读愉快。
书云 Open E-Library » DjangoByExample - (EPUB全文下载)