Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, May 16, 2026. Learn more…

Leanpub Header

Skip to main content

Django 6: Create your online store step by step

Build a modern and scalable application with a blog, ecommerce, multilingual support, and Stripe or PayPal payment gateways.

This book is 100% completeLast updated on 2026-05-07

In this book, we are going to learn how the framework is formed, the basic characteristics that Django allows us as the framework par excellence to create CRUD processes, which range from the creation of views, templates, connection to models, routing, form validations, creating middleware among others.

This book is a translation into English of Django 6 desde cero: desarrollo web Full Stack con Vue y Bootstrap 5 which was originally written in Spanish

Minimum price

$13.00

$20.00

You pay

Author earns

$
PDF
EPUB
About

About

About the Book

In this book, you'll learn to build a modern online store with Django, following a modular, scalable structure designed for real-world projects. Throughout the chapters, we'll progress from the initial project creation to the implementation of complete modules such as the blog, the online store, filters, pagination, and integration with payment gateways like PayPal and Stripe.

The goal is for you to not only see code, but also understand how a professional Django application is organized and how you can reuse each part to create more robust solutions. I recommend following the steps in order, testing each example, and adapting the code to your own needs to reinforce your learning.

Chapter 1 - First steps: We will create the project that we will carry out in the course.

Chapter 2 - Models and Migrations: We will create the main migrations and models that we will use in the application.

Chapter 3 - CRUD for blog and store: In this chapter, we're going to create the CRUD for the blog, that is, the posts, categories, tags, among others.

Chapter 4 - Web Blog: We will create the blog for the end user, paginated listing with filters and details.

Chapter 5 - Online Store: Books: We will create the Store with payment gateways for PayPal and Stripe for the end user, with paginated listings with filters and details.

Chapter 6 - Online Store: Products: We'll create an online store for products instead of a book store to make it more generic.

Chapter 7 - Various changes: In this section, we'll implement several changes to the online store app, such as setting the language, dark mode, improving the design, and adding a module to view payments.

Share this book

Categories

This book is a translation into English of Django 6 desde cero: desarrollo web Full Stack con Vue y Bootstrap 5 which was originally written in Spanish

Author

About the Author

Andrés Cruz Yoris

Andrés Cruz Yoris, Licenciado en Computación, con más de 10 años de experiencia en el desarrollo de aplicaciones web en general; trabajo con PHP, Python y tecnologías del lado del cliente como HTML, JavaScript, CSS, Vue entre otras; y del lado del servidor como Laravel, Flask, Django y Codeigniter. También desarrollo con Android Studio, xCode y Flutter para la creación de aplicaciones nativas para Android e IOS.

Pongo a tú disposición parte de mi aprendizaje, reflejado en cada una de las palabras que componen mis libros sobre el desarrollo de aplicaciones en general.

Translations

Translations

Languages

Contents

Table of Contents

Getting started with Django 4

Tweet about the book!

About the Author

Copyright

Chapter 1: Required software and installation of tools

  1. Required Software

Chapter 2: Getting started with Django

  1. Packages and best practices when working with Python
  2. Prepare the development environment
  3. Django

Chapter 3: Create a CRUD application

  1. Models
  2. Introduction to migrations
  3. Run the project on a server
  4. Views, templates and routes
  5. Views, templates, routes and forms
  6. Save the data in the database
  7. Create a CRUD process

Chapter 4: Django Admin

  1. Add our own relations
  2. Customize Django Admin
  3. Register classes using a decorator

Chapter 5: Forms

  1. Django ModelForm
  2. Django Forms
  3. Case study
  4. Validations
  5. Reference the fields and labels of the form individually

Chapter 6: Templates: Master Templates, Labels, and Filters

  1. Render dynamic content
  2. tags
  3. Filters

Chapter 7: Working with QuerySets

Chapter 8: Create a Rest API with Django Rest Framework

  1. Create a Rest API in Django
  2. Install
  3. Create application for the Rest API
  4. Django Rest Framework in practice

Chapter 9: Consuming the Rest API with an app in Vue

  1. Prepare the environment
  2. Vue Router
  3. Configure axis
  4. Naive UI, for graphical interface components
  5. Install and configure Tailwind CSS
  6. Fix small details
  7. Bonus: Introduction to overriding the NaiveUI theme
  8. Form component for the type
  9. Form component for the element
  10. CKEditor: Editor for rich content
  11. Navigable menu options
  12. Format of the dates in the rest api
  13. Redirects on nonexistent routes
  14. Visual changes
  15. Multiple router-views

Chapter 10: Class Based Views (CBV)

  1. Create a project and application
  2. Create model, migration and form
  3. Class-Based Views
  4. CRUD-like class-based views
  5. Class-based views for authentication

Chapter 11: Reading Files

  1. Create a project and application
  2. CSV handling
  3. Excel handling (XLSX)
  4. Generate PDF

Chapter 12 : Create an Alpine.js to do list application

Chapter 13 : Integrating Alpine with Django

  1. Create virtual space, project and initial application
  2. Migrate to do list app to Django
  3. Create model and migration for the to do
  4. Create a Rest API for the to do
  5. Install axios

Get the free Community Edition

You can get the free Community Edition in PDF or EPUB just by sharing your name and email address with the author, or you can just click this link to read a shorter sample online...

 

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub