Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Django 5 By Example
  • Table Of Contents Toc
  • Feedback & Rating feedback
Django 5 By Example

Django 5 By Example

By : Antonio Melé
4.6 (39)
close
close
Django 5 By Example

Django 5 By Example

4.6 (39)
By: Antonio Melé

Overview of this book

If you want to learn Django by doing, this book is for you. Django 5 By Example is the fifth edition of the best-selling franchise that helps you build real-world web apps. This book will walk you through planning and creation, solving common problems, and implementing best practices using a step-by-step approach. You’ll cover a wide range of web application development topics through four different projects: a blog application, a social website, an e-commerce application, and an e-learning platform. Pick up what’s new in Django 5 as you build end-to-end Python web apps, follow detailed project plans, and understand the hows and whys of Django. This is a practical and approachable book that will have you creating web apps quickly.
Table of Contents (20 chapters)
close
close
18
Other Books You May Enjoy
19
Index

Installing Memcached

Memcached is a popular high-performance, memory-based cache server. We are going to use Memcached and the PyMemcacheCache Memcached backend.

Installing the Memcached Docker image

Run the following command from the shell to pull the Memcached Docker image:

docker pull memcached:1.6.26

This will download the Memcached Docker image to your local machine. You can find more information about the official Memcached Docker image at https://hub.docker.com/_/memcached. If you don’t want to use Docker, you can also download Memcached from https://memcached.org/downloads.

Run the Memcached Docker container with the following command:

docker run -it --rm --name memcached -p 11211:11211 memcached:1.6.26 -m 64

Memcached runs on port 11211 by default. The -p option is used to publish the 11211 port to the same host interface port. The -m option is used to limit the memory for the container to 64 MB. Memcached runs in memory, and it is allotted...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY