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 ............

书籍插图:
书籍《DjangoByExample》 - 插图1
书籍《DjangoByExample》 - 插图2

以上为书籍内容预览,如需阅读全文内容请下载EPUB源文件,祝您阅读愉快。

版权声明:书云(openelib.org)是世界上最大的在线非盈利图书馆之一,致力于让每个人都能便捷地了解我们的文明。我们尊重著作者的知识产权,如您认为书云侵犯了您的合法权益,请参考版权保护声明,通过邮件openelib@outlook.com联系我们,我们将及时处理您的合理请求。 数研咨询 流芳阁 研报之家 AI应用导航 研报之家
书云 Open E-Library » DjangoByExample - (EPUB全文下载)