在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例Clojure → Django 3 Web Development Cookbook - Fourth Edition (Aidas Bendoraitis)

Django 3 Web Development Cookbook - Fourth Edition (Aidas Bendoraitis)

Clojure

下载此实例
  • 开发语言:Others
  • 实例大小:40.87M
  • 下载次数:7
  • 浏览次数:64
  • 发布时间:2022-07-24
  • 实例类别:Clojure
  • 发 布 人:hybflying
  • 文件格式:.pdf
  • 所需积分:2

实例介绍

【实例简介】Django 3 Web Development Cookbook - Fourth Edition (Aidas Bendoraitis) 



Django 3 Web Development Cookbook, Fourth Edition, will guide you
through every stage of the web development process with the Django 3.0
framework. We start with the configuration and structuring of the project.
Then, you will learn how to define the database structure with reusable
components, and how to manage it throughout the lifetime of your project.
The book will move on to the forms and views used to enter and list the
data. We'll proceed with responsive templates and JavaScript to augment
the user experience. Then we will enhance Django's template system with
custom filters and tags to be more flexible for frontend development. After
this, you will tailor the administration interface in order to simplify the
workflow of content editors. From there, we shift focus to the stability and
robustness of your project, helping to secure and optimize your apps. Next,
we examine how to efficiently store and manipulate hierarchical structures.
Then we will demonstrate that collecting data from different sources and
providing your own data to others in a range of formats is simpler than you
might think. We will then introduce you to some tricks for programming
and debugging your Django project code. We will move on with a few of
the available options for testing your code. Just before the end of the book,


实例截图】


from clipboard



【核心代码】

Table of Contents
Title Page
Copyright and Credits
Django 3 Web Development Cookbook Fourth Edition
About Packt
Why subscribe?
Contributors
About the authors
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
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
1. Getting Started with Django 3.0
Introduction
Technical requirements
Working with a virtual environment
Getting ready
How to do it...
How it works...
See also
Creating a project file structure
Getting readyHow to do it...
How it works...
There's more...
See also
Handling project dependencies with pip
Getting ready
How to do it...
How it works...
There's more...
See also
Configuring settings for development, testing, staging, and production en
vironments
Getting ready
How to do it...
How it works...
See also
Defining relative paths in the settings
Getting ready
How to do it...
How it works...
See also
Handling sensitive settings
Getting ready
How to do it...
How it works...
There's more...
See also
Including external dependencies in your project
Getting ready
How to do it...
How it works...
See also
Setting up STATIC_URL dynamically
Getting ready
How to do it...
How it works...
There's more...See also
Setting UTF-8 as the default encoding for the MySQL configuration
Getting ready
How to do it...
How it works...
There's more...
See also
Creating the Git ignore file
Getting ready
How to do it...
How it works...
See also
Deleting Python-compiled files
Getting ready
How to do it...
How it works...
There's more...
See also
Respecting the import order in Python files
Getting ready
How to do it...
How it works...
There's more...
See also
Creating an app configuration
Getting ready
How to do it...
How it works...
There's more...
See also
Defining overwritable app settings
Getting ready
How to do it...
How it works...
See also
Working with Docker containers for Django, Gunicorn, Nginx, and PostgreSQ
LGetting ready
How to do it...
How it works...
There's more...
See also
2. Models and Database Structure
Introduction
Technical requirements
Using model mixins
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a model mixin with URL-related methods
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a model mixin to handle creation and modification dates
Getting ready
How to do it...
How it works...
See also
Creating a model mixin to take care of meta tags
Getting ready
How to do it...
How it works...
See also
Creating a model mixin to handle generic relations
Getting ready
How to do it...
How it works...
See also
Handling multilingual fields
Getting readyHow to do it...
How it works...
See also
Working with model translation tables
Getting ready
How to do it...
How it works...
See also
Avoiding circular dependencies
Getting ready
How to do it...
See also
Adding database constraints
Getting ready
How to do it...
How it works...
There's more...
See also
Using migrations
Getting ready
How to do it...
How it works...
There's more...
See also
Changing a foreign key to the many-to-many field
Getting ready
How to do it...
How it works...
There's more...
See also
3. Forms and Views
Introduction
Technical requirements
Creating an app with CRUDL functions
Getting ready
How to do it...
How it works...There's more...
See also
Saving the author of a model instance
Getting ready
How to do it...
How it works...
See also
Uploading images
Getting ready
How to do it...
How it works...
See also
Creating a form layout with custom templates
Getting ready
How to do it...
How it works...
See also
Creating a form layout with django-crispy-forms
Getting ready
How to do it...
How it works...
There's more...
See also
Working with formsets
Getting ready
How to do it...
How it works...
There's more...
See also
Filtering object lists
Getting ready
How to do it...
How it works...
See also
Managing paginated lists
Getting ready
How to do it...How it works...
See also
Composing class-based views
Getting ready
How to do it...
How it works...
There's more...
See also
Providing Open Graph and Twitter Card data
Getting ready
How to do it...
How it works...
See also
Providing schema.org vocabularies
Getting ready
How to do it...
How it works...
See also
Generating PDF documents
Getting ready
How to do it...
How it works...
See also
Implementing a multilingual search with Haystack and Whoosh
Getting ready
How to do it...
How it works...
See also
Implementing a multilingual search with Elasticsearch DSL
Getting ready
How to do it...
How it works...
See also
4. Templates and JavaScript
Introduction
Technical requirements
Arranging the base.html templateGetting ready
How to do it...
 How it works...
See also
Using Django Sekizai
Getting ready
How to do it...
How it works...
See also
Exposing settings in JavaScript
Getting ready
How to do it...
How it works...
See also
Using HTML5 data attributes
Getting ready
How to do it...
How it works...
See also
Providing responsive images
Getting ready
How to do it...
How it works...
There's more...
See also
Implementing a continuous scrolling
Getting ready
How to do it...
How it works...
There's more...
See also
Opening object details in a modal dialog
Getting ready
How to do it...
How it works...
See also
Implementing the Like widgetGetting ready
How to do it...
How it works...
See also
Uploading images via Ajax
Getting ready
How to do it...
How it works...
There's more...
See also
5. Custom Template Filters and Tags
Introduction
Technical requirements
Following conventions for your own template filters and tags
Creating a template filter to show how many days have passed since a post
was published
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a template filter to extract the first media object
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a template filter to humanize URLs
Getting ready
How to do it...
How it works...
See also
Creating a template tag to include a template, if it exists
Getting ready
How to do it...
How it works...
There's more...See also
Creating a template tag to load a QuerySet in a template
Getting ready
How to do it...
How it works...
See also
Creating a template tag to parse content as a template
Getting ready
How to do it...
How it works...
See also
Creating template tags to modify request query parameters
Getting ready
How to do it...
How it works...
See also
6. Model Administration
Introduction
Technical requirements
Customizing columns on the change list page
Getting ready
How to do it...
How it works...
See also
Creating sortable inlines
Getting ready
How to do it...
How it works...
See also
Creating admin actions
Getting ready
How to do it...
How it works...
See also
Developing change list filters
Getting ready
How to do it...How it works...
See also
Changing the app label of a third-party app
Getting ready
How to do it...
How it works...
See also
Creating a custom accounts app
Getting ready
How to do it...
How it works...
See also
Getting user Gravatars
Getting ready
How to do it...
How it works...
There's more...
See also
Inserting a map into a change form
Getting ready
How to do it...
How it works...
See also
7. Security and Performance
Introduction
Technical requirements
Making forms secure from Cross-Site Request Forgery (CSRF)
Getting ready
How to do it...
How it works...
There's more...
See also
Making requests secure with Content Security Policy (CSP)
Getting ready
How to do it...
How it works...
See alsoUsing django-admin-honeypot
Getting ready
How to do it...
How it works...
There's more...
See also
Implementing password validation
Getting ready
How to do it...
How it works...
There's more...
See also
Downloading authorized files
Getting ready
How to do it...
How it works...
See also
Adding a dynamic watermark to images
Getting ready
How to do it...
How it works...
See also
Authenticating with Auth0
Getting ready
How to do it...
How it works...
See also
Caching the method return value
Getting ready
How to do it...
How it works...
There's more...
See also
Using Memcached to cache Django views
Getting ready
How to do it...
How it works...See also
Using Redis to cache Django views
Getting ready
How to do it...
How it works...
There's more...
See also
8. Hierarchical Structures
Introduction
Technical requirements
Creating hierarchical categories with django-mptt
Getting ready
How to do it...
How it works...
See also
Creating a category administration interface with django-mptt-admin
Getting ready
How to do it...
How it works...
See also
Rendering categories in a template with django-mptt
Getting ready
How to do it...
How it works...
There's more...
See also
Using a single selection field to choose a category in forms with django
mptt
Getting ready
How to do it...
How it works...
See also
Using a checkbox list to choose multiple categories in forms with django
mptt
Getting ready
How to do it...
How it works...See also
Creating hierarchical categories with django-treebeard
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a basic category administration interface with django-treebeard
Getting ready
How to do it...
How it works...
See also
9. Importing and Exporting Data
Introduction
Technical requirements
Importing data from a local CSV file
Getting ready
How to do it...
How it works...
See also
Importing data from a local Excel file
Getting ready
How to do it...
How it works...
See also
Importing data from an external JSON file
Getting ready
How to do it...
How it works...
See also
Importing data from an external XML file
Getting ready
How to do it...
How it works...
There's more...
See also
Preparing paginated sitemaps for search enginesGetting ready
How to do it...
How it works...
There's more...
See also
Creating filterable RSS feeds
Getting ready
How to do it...
How it works...
See also
Using Django REST framework to create an API
Getting ready
How to do it...
How it works...
See also
10. Bells and Whistles
Introduction
Technical requirements
Using the Django shell
Getting ready
How to do it...
How it works...
See also
Using database query expressions
Getting ready
How to do it...
How it works...
See also
Monkey patching the slugify() function for better internationalization su
pport
Getting ready
How to do it...
How it works...
There's more...
See also
Toggling the Debug toolbar
Getting readyHow to do it...
How it works...
See also
Using ThreadLocalMiddleware
Getting ready
How to do it...
How it works...
See also
Using signals to notify administrators about new entries
Getting ready
How to do it...
How it works...
See also
Checking for missing settings
Getting ready
How to do it...
How it works...
See also
11. Testing
Introduction
Technical requirements
Testing views with mock
Getting ready
How to do it...
How it works...
There's more...
See also
Testing the user interface with Selenium
Getting ready
How to do it...
How it works...
See also
Testing APIs created using Django REST framework
Getting ready
How to do it...
How it works...
See alsoEnsuring test coverage
Getting ready
How to do it...
How it works...
See also
12. Deployment
Introduction
Technical requirements
Releasing a reusable Django app
Getting ready
How to do it...
How it works...
See also
Deploying on Apache with mod_wsgi for the staging environment
Getting ready
How to do it...
How it works...
See also
Deploying on Apache with mod_wsgi for the production environment
Getting ready
How to do it...
How it works...
See also
Deploying on Nginx and Gunicorn for the staging environment
Getting ready
How to do it...
How it works...
See also
Deploying on Nginx and Gunicorn for the production environment
Getting ready
How to do it...
How it works...
See also
13. Maintenance
Introduction
Technical requirements
Creating and restoring MySQL database backupsGetting ready
How to do it...
How it works.
See also
Creating and restoring PostgreSQL database backups
Getting ready
How to do it...
How it works...
See also
Setting up cron jobs for regular tasks
Getting ready
How to do it...
How it works...
There's more...
See also
Logging events for further introspection
Getting ready
How to do it...
How it works...
See also
Getting detailed error reporting via email
Getting ready
How to do it...
How it works...
There's more...
See also
Other Books You May Enjoy
Leave a review - let other readers know what you think

实例下载地址

Django 3 Web Development Cookbook - Fourth Edition (Aidas Bendoraitis)

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警