舉報

會員
Django 2 by Example
Antonio Melé 著
更新時間:2021-06-25 21:19:53
開會員,本書免費讀 >
IfyouareawebdeveloperwhowantstoseehowtobuildprofessionalsiteswithDjango,thisbookisforyou.YouwillneedabasicknowledgeofPython,HTML,andJavaScript,butyoudon'tneedtohaveworkedwithDjangobefore.
最新章節
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- Implementing custom management commands
- Serving multiple subdomains with NGINX
- Creating a subdomain middleware
品牌:中圖公司
上架時間:2021-06-25 20:48:01
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Leave a review - let other readers know what you think 更新時間:2021-06-25 21:19:53
- Other Books You May Enjoy
- Summary
- Implementing custom management commands
- Serving multiple subdomains with NGINX
- Creating a subdomain middleware
- Creating a custom middleware
- Configuring our project for SSL
- Configuring NGINX to use SSL
- Creating an SSL certificate
- Securing connections with SSL
- Serving static and media assets
- Configuring NGINX
- The production environment
- Installing NGINX
- Configuring uWSGI
- Installing uWSGI
- Serving Django through WSGI
- Checking your project
- Using PostgreSQL
- Managing settings for multiple environments
- Creating a production environment
- Going Live
- Summary
- Serializing course contents
- Creating custom permissions
- Adding additional actions to view sets
- Creating view sets and routers
- Adding permissions to views
- Handling authentication
- Building custom views
- Creating nested serializers
- Building list and detail views
- Understanding parsers and renderers
- Defining serializers
- Installing Django REST framework
- Building a RESTful API
- Building an API
- Summary
- Using the per-site cache
- Caching views
- Caching template fragments
- Caching based on dynamic data
- Using the low-level cache API
- Cache levels
- Monitoring Memcached
- Adding Memcached to your project
- Cache settings
- Installing Memcached
- Available cache backends
- Using the cache framework
- Rendering different types of content
- Accessing the course contents
- Enrolling in courses
- Creating a student registration view
- Adding student registration
- Displaying courses
- Rendering and Caching Content
- Summary
- Using mixins from django-braces
- Reordering modules and contents
- Managing modules and contents
- Adding content to course modules
- Using formsets for course modules
- Managing course modules and content
- Restricting access to class-based views
- Working with groups and permissions
- Using mixins for class-based views
- Creating class-based views
- Creating the authentication templates
- Adding an authentication system
- Creating a CMS
- Adding ordering to module and content objects
- Creating custom model fields
- Creating the content models
- Proxy models
- Multi-table model inheritance
- Abstract models
- Using model inheritance
- Creating models for diverse content
- Using fixtures to provide initial data for models
- Registering the models in the administration site
- Building the course models
- Setting up the e-learning project
- Building an E-Learning Platform
- Summary
- Recommending products based on previous purchases
- Building a recommendation engine
- Using django-localflavor to validate form fields
- Format localization
- Adapting views for translations
- Creating migrations for model translations
- Integrating translations in the administration site
- Translating model fields
- Installing django-parler
- Translating models with django-parler
- Allowing users to switch language
- Translating URL patterns
- Adding a language prefix to URL patterns
- URL patterns for internationalization
- Fuzzy translations
- Using the Rosetta translation interface
- Translating the shop templates
- The {% blocktrans %} template tag
- The {% trans %} template tag
- Translating templates
- Translating your own code
- Plural forms in translations
- Translations including variables
- Lazy translations
- Standard translations
- Translating Python code
- Preparing our project for internationalization
- How Django determines the current language
- How to add translations to a Django project
- Internationalization management commands
- Internationalization and localization settings
- Internationalization with Django
- Adding internationalization and localization
- Applying coupons to orders
- Applying a coupon to the shopping cart
- Building the coupon models
- Creating a coupon system
- Extending Your Shop
- Summary
- Sending PDF files by email
- Rendering PDF files
- Creating a PDF template
- Installing WeasyPrint
- Generating PDF invoices dynamically
- Extending the admin site with custom views
- Adding custom actions to the administration site
- Exporting orders to CSV files
- Going live
- Testing payments
- Integrating Braintree using Hosted Fields
- Integrating the payment gateway
- Installing the Braintree Python module
- Creating a Braintree sandbox account
- Integrating a payment gateway
- Managing Payments and Orders
- Summary
- Monitoring Celery
- Adding asynchronous tasks to your application
- Adding Celery to your project
- Installing RabbitMQ
- Installing Celery
- Launching asynchronous tasks with Celery
- Creating customer orders
- Including order models in the administration site
- Creating order models
- Registering customer orders
- Setting the cart into the request context
- Context processors
- Creating a context processor for the current cart
- Updating product quantities in the cart
- Adding products to the cart
- Building a template to display the cart
- Adding items to the cart
- Creating shopping cart views
- Storing shopping carts in sessions
- Session expiration
- Session settings
- Using Django sessions
- Building a shopping cart
- Creating catalog templates
- Building catalog views
- Registering catalog models on the admin site
- Creating product catalog models
- Creating an online shop project
- Building an Online Shop
- Summary
- Next steps with Redis
- Storing a ranking in Redis
- Storing item views in Redis
- Using Redis with Python
- Installing Redis
- Using Redis for storing item views
- Application configuration classes
- Working with signals
- Using signals for denormalizing counts
- Creating templates for actions
- Using prefetch_related()
- Using select_related()
- Optimizing QuerySets that involve related objects
- Displaying the activity stream
- Adding user actions to the activity stream
- Avoiding duplicate actions in the activity stream
- Adding generic relations to your models
- Using the contenttypes framework
- Building a generic activity stream application
- Building an AJAX view to follow users
- Creating list and detail views for user profiles
- Creating many-to-many relationships with an intermediary model
- Building a follower system
- Tracking User Actions
- Summary
- Adding AJAX pagination to your list views
- Creating custom decorators for your views
- Performing AJAX requests with jQuery
- Cross-Site Request Forgery in AJAX requests
- Loading jQuery
- Adding AJAX actions with jQuery
- Creating image thumbnails using sorl-thumbnail
- Creating a detail view for images
- Building a bookmarklet with jQuery
- Overriding the save() method of a ModelForm
- Cleaning form fields
- Posting content from other websites
- Registering the image model in the administration site
- Creating many-to-many relationships
- Building the image model
- Creating an image bookmarking website
- Sharing Content in Your Website
- Summary
- Authentication using Google
- Authentication using Twitter
- Authentication using Facebook
- Adding social authentication to your site
- Building a custom authentication backend
- Using the messages framework
- Using a custom user model
- Extending the user model
- User registration
- User registration and user profiles
- Resetting password views
- Changing password views
- Login and logout views
- Using Django authentication views
- Creating a login view
- Using the Django authentication framework
- Starting your social website project
- Creating a social website project
- Building a Social Website
- Summary
- Other full-text search engines
- Searching with trigram similarity
- Weighting queries
- Stemming and ranking results
- Building a search view
- Searching against multiple fields
- Simple search lookups
- Installing PostgreSQL
- Adding full-text search to your blog
- Creating feeds for your blog posts
- Adding a sitemap to your site
- Creating custom template filters
- Creating custom template tags
- Creating custom template tags and filters
- Extending Your Blog Application
- Summary
- Retrieving posts by similarity
- Adding the tagging functionality
- Adding comments to the post detail template
- Handling ModelForms in views
- Creating forms from models
- Creating a comment system
- Rendering forms in templates
- Sending emails with Django
- Handling forms in views
- Creating forms with Django
- Sharing posts by email
- Enhancing Your Blog with Advanced Features
- Summary
- Using class-based views
- Adding pagination
- Creating templates for your views
- Canonical URLs for models
- Adding URL patterns for your views
- Creating list and detail views
- Building list and detail views
- Creating model managers
- When QuerySets are evaluated
- Deleting objects
- Using order_by()
- Using exclude()
- Using the filter() method
- Retrieving objects
- Updating objects
- Creating objects
- Working with QuerySet and managers
- Customizing the way models are displayed
- Adding your models to the administration site
- The Django administration site
- Creating a superuser
- Creating an administration site for your models
- Creating and applying migrations
- Activating your application
- Designing the blog data schema
- Creating an application
- Projects and applications
- Project settings
- Running the development server
- Creating your first project
- Installing Django with pip
- Creating an isolated Python environment
- Installing Django
- Building a Blog Application
- Reviews
- Get in touch
- Conventions used
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewers
- About the author
- Contributors
- PacktPub.com
- Why subscribe?
- Packt Upsell
- Dedication
- 版權信息
- 封面
- 封面
- 版權信息
- 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
- Summary
- 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
- Summary
- 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
- Authentication using Google
- Summary
- Sharing Content in Your Website
- Creating an image bookmarking website
- Building the image model
- Creating many-to-many relationships
- Registering the image model in the administration site
- Posting content from other websites
- Cleaning form fields
- Overriding the save() method of a ModelForm
- Building a bookmarklet with jQuery
- Creating a detail view for images
- Creating image thumbnails using sorl-thumbnail
- Adding AJAX actions with jQuery
- Loading jQuery
- Cross-Site Request Forgery in AJAX requests
- Performing AJAX requests with jQuery
- Creating custom decorators for your views
- Adding AJAX pagination to your list views
- Summary
- Tracking User Actions
- Building a follower system
- Creating many-to-many relationships with an intermediary model
- Creating list and detail views for user profiles
- Building an AJAX view to follow users
- Building a generic activity stream application
- Using the contenttypes framework
- Adding generic relations to your models
- Avoiding duplicate actions in the activity stream
- Adding user actions to the activity stream
- Displaying the activity stream
- Optimizing QuerySets that involve related objects
- Using select_related()
- Using prefetch_related()
- Creating templates for actions
- Using signals for denormalizing counts
- Working with signals
- Application configuration classes
- Using Redis for storing item views
- Installing Redis
- Using Redis with Python
- Storing item views in Redis
- Storing a ranking in Redis
- Next steps with Redis
- Summary
- Building an Online Shop
- Creating an online shop project
- Creating product catalog models
- Registering catalog models on the admin site
- Building catalog views
- Creating catalog templates
- Building a shopping cart
- Using Django sessions
- Session settings
- Session expiration
- Storing shopping carts in sessions
- Creating shopping cart views
- Adding items to the cart
- Building a template to display the cart
- Adding products to the cart
- Updating product quantities in the cart
- Creating a context processor for the current cart
- Context processors
- Setting the cart into the request context
- Registering customer orders
- Creating order models
- Including order models in the administration site
- Creating customer orders
- Launching asynchronous tasks with Celery
- Installing Celery
- Installing RabbitMQ
- Adding Celery to your project
- Adding asynchronous tasks to your application
- Monitoring Celery
- Summary
- Managing Payments and Orders
- Integrating a payment gateway
- Creating a Braintree sandbox account
- Installing the Braintree Python module
- Integrating the payment gateway
- Integrating Braintree using Hosted Fields
- Testing payments
- Going live
- Exporting orders to CSV files
- Adding custom actions to the administration site
- Extending the admin site with custom views
- Generating PDF invoices dynamically
- Installing WeasyPrint
- Creating a PDF template
- Rendering PDF files
- Sending PDF files by email
- Summary
- Extending Your Shop
- Creating a coupon system
- Building the coupon models
- Applying a coupon to the shopping cart
- Applying coupons to orders
- Adding internationalization and localization
- Internationalization with Django
- Internationalization and localization settings
- Internationalization management commands
- How to add translations to a Django project
- How Django determines the current language
- Preparing our project for internationalization
- Translating Python code
- Standard translations
- Lazy translations
- Translations including variables
- Plural forms in translations
- Translating your own code
- Translating templates
- The {% trans %} template tag
- The {% blocktrans %} template tag
- Translating the shop templates
- Using the Rosetta translation interface
- Fuzzy translations
- URL patterns for internationalization
- Adding a language prefix to URL patterns
- Translating URL patterns
- Allowing users to switch language
- Translating models with django-parler
- Installing django-parler
- Translating model fields
- Integrating translations in the administration site
- Creating migrations for model translations
- Adapting views for translations
- Format localization
- Using django-localflavor to validate form fields
- Building a recommendation engine
- Recommending products based on previous purchases
- Summary
- Building an E-Learning Platform
- Setting up the e-learning project
- Building the course models
- Registering the models in the administration site
- Using fixtures to provide initial data for models
- Creating models for diverse content
- Using model inheritance
- Abstract models
- Multi-table model inheritance
- Proxy models
- Creating the content models
- Creating custom model fields
- Adding ordering to module and content objects
- Creating a CMS
- Adding an authentication system
- Creating the authentication templates
- Creating class-based views
- Using mixins for class-based views
- Working with groups and permissions
- Restricting access to class-based views
- Managing course modules and content
- Using formsets for course modules
- Adding content to course modules
- Managing modules and contents
- Reordering modules and contents
- Using mixins from django-braces
- Summary
- Rendering and Caching Content
- Displaying courses
- Adding student registration
- Creating a student registration view
- Enrolling in courses
- Accessing the course contents
- Rendering different types of content
- Using the cache framework
- Available cache backends
- Installing Memcached
- Cache settings
- Adding Memcached to your project
- Monitoring Memcached
- Cache levels
- Using the low-level cache API
- Caching based on dynamic data
- Caching template fragments
- Caching views
- Using the per-site cache
- Summary
- Building an API
- Building a RESTful API
- Installing Django REST framework
- Defining serializers
- Understanding parsers and renderers
- Building list and detail views
- Creating nested serializers
- Building custom views
- Handling authentication
- Adding permissions to views
- Creating view sets and routers
- Adding additional actions to view sets
- Creating custom permissions
- Serializing course contents
- Summary
- Going Live
- Creating a production environment
- Managing settings for multiple environments
- Using PostgreSQL
- Checking your project
- Serving Django through WSGI
- Installing uWSGI
- Configuring uWSGI
- Installing NGINX
- The production environment
- Configuring NGINX
- Serving static and media assets
- Securing connections with SSL
- Creating an SSL certificate
- Configuring NGINX to use SSL
- Configuring our project for SSL
- Creating a custom middleware
- Creating a subdomain middleware
- Serving multiple subdomains with NGINX
- Implementing custom management commands
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-06-25 21:19:53