Learn Python and the Django Framework by building a e-commerce website

Overview

veryacademy

Django E-commerce Tutorial Series

Learn Python and the Django Framework by building a e-commerce website
The Django E-commerce project is an open-source initiative and tutorial series. Learn from a beginner level how to build an e-commerce website.

Please join our active, growing community:
Website (Coming Soon) | Twitter | YouTube

Aims of this course

The aims of this course is to:

  • learn the Django framework
  • learn how to build, test and deploy a Django application

Course Introduction

The Django E-commerce Tutorial Series is designed for students who wants to learn the Django Framework by building an e-commerce application. This course is a great way to start learning Python and the Django Framework. We start from a beginners level slowly moving into more advanced topics. I have tried to design this course to be modular so that you could also focus in on particular subjects, tutorials or aspects of Django should you prefer this mode of learning.

On this course you will be taught a wide range of skills, here are a few topics that we will be learning:

  • Django URLs, models, views
  • Django Templating
  • Introduction to Unittest
  • Testing with Pytest
  • Working with Django and Docker
  • Deploying Django Applications

Tutorials

The tutorials, found here on our YouTube channel take you through the steps of developing an e-commerce application with Python Django, predominately deploying the Django template system.

Prerequisites

  • Install Python onto your PC/Laptop
  • Optional - Visual Studio Code Editor
  • Tutorials use Windows OS (you can use other OS but it might require additional steps not detailed in the tutorials)

Who is this course for

This course tries to cater for many types of learners:

  • new developers,
  • not so new developers,
  • degree students,
  • Everyone else who is looking to learn Django

Course Content

Part-1 Building models, views and testing
This first tutorial is most definitely aimed at Django beginners where we cover the basics of developing Django views, URLS, models and get started with testing our application. By the end of this tutorial you will have a working product catalogue which will form the basis of our e-commerce application.

Link to Tutorial https://youtu.be/UqSJCVePEWU
Part-2 Build an e-commerce basket with session handling
In this tutorial we go through the process of building a shopping basket using sessions to handle managing data anonymous connections, saving products into a shopping cart in preparation to be purchased. We implement Ajax to handle the front-end and work through stage by stage the functionality needed to save, update and delete the basket data.

Link to Tutorial https://youtu.be/VOwfGW-ZTIY
Part-3 Build a user, payment and order management system
In this tutorial we go through the process of building the user functions needed to allow users to login and manage their account. We then work through building a payment system using stripe and finally create an ordering backend to capture the customer orders.

Link to Tutorial https://youtu.be/ncsCnC3Ynlw
Part-4 Refactoring the E-commerce Store Templates
In this tutorial we go through the process of refactoring the templates in our project.

Link to Tutorial https://youtu.be/S9-aRoLrs7U
Part-5 Multi-Product Types Database Implementation
In this tutorial we go through the process of developing a database for multiple products with multiple attributes.

Link to Tutorial https://youtu.be/hGg13rzvoNY
Part-6 Managing multiple addresses CRUD and UUID
In this tutorial we go through the process of further normalizing the accounts table to allow users to save more than one address. We build in Django a new address table and then start to update the UI in the dashboard, finally we work through a simple CRUD feature with Django views.

Link to Tutorial https://youtu.be/8SP76dopYVo
Part-7 E-commerce Customer Wish List
In this tutorial we go through the process of building a purely Django user wish list to allow users to create a list of favorite products.

Link to Tutorial https://youtu.be/OgA0TTKAtqQ
Part-8 PayPal Integration
In this tutorial we go through the first steps of integrating PayPal into our e-commerce store.

Link to Tutorial https://youtu.be/smSl2ahkfNw
Part-9 Refactor Folder Structure & Pytest Introduction
In this Django tutorial we discuss Django folder structures and prepare our application ready for scaling further. We prepare the app for the next step of testing, installing Pytest and I take you through the first steps of working with Pytest to test your application.

Link to Tutorial https://youtu.be/ZE7dM0XmUoA
Part-10 Pytest Testing 1
In this Django tutorial we start to test with Pytest, Factory Boy the apps we have build previously.

Link to Tutorial

Community Driven Content

I activity try and promote feedback to taylor courses to your needs and wishes. Here is a list of features requested by community. If you would like to request any other feature not listed here - please visit our YouTube channel and make a comment.

Next Planned Tutorials

  • Tests for whole system

Introduction Phase Suggestions

  • Create Data fixtures (if possible community support for multiple languages)
  • Setup or custom commands for project initial setup
  • Documentation - Class Diagrams and Sequence Diagrams
  • Basic/different search techniques
  • Product Tags/Search
  • Email payment confirmation and PDF receipts
  • Product filter searching
  • Rating / Feedback
  • Coupon System

Intermediate Level Suggestions

  • Internationalization
  • Change to CBV (or not - up to you)
  • PostgreSQL (via Docker)
  • Custom admin views and management tasks
  • Managing sales or season sales
  • Store locator to your project
  • Email list + bulk emailing
  • Notifications
  • Request quotations for bulk orders

Advanced Level Suggestions

  • Haystack / Elasticsearch
  • User Recommendations/Recommender systems
  • Cache
  • Live Chat - Help/Support (Channels)
  • Processing / working with images (compression etc)
  • Generating product statistics
  • Allow users to sell products

Deployment Suggestions

  • Docker deployment configuration
  • Heroku deployment
  • Digital Ocean deployment

Contributing

This course welcomes contributions and suggestions. At present, we are not accepting any code contributions. When the tutorials have finished the project will be open to welcome code contributions. If you find any errors or have trouble with any of our code - please get in contact with us through our YouTube channel.

Instructor

Zander, the founder of Very Academy has over 20 years of development and educational lecturing experience. He is now focused on developing free technical courses and resources on a range of subjects.

License

MIT License

Owner
Very Academy
Open source project initiatives, code samples, video and written tutorials
Very Academy
based official code from django channels, replace frontend with reactjs

django_channels_chat_official_tutorial demo project for django channels tutorial code from tutorial page: https://channels.readthedocs.io/en/stable/tu

lightsong 1 Oct 22, 2021
Auto-detecting the n+1 queries problem in Python

nplusone nplusone is a library for detecting the n+1 queries problem in Python ORMs, including SQLAlchemy, Peewee, and the Django ORM. The Problem Man

Joshua Carp 837 Dec 29, 2022
Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.

Cookiecutter Django Powered by Cookiecutter, Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly. Documentati

Daniel Feldroy 10k Dec 31, 2022
A music recommendation REST API which makes a machine learning algorithm work with the Django REST Framework

music-recommender-rest-api A music recommendation REST API which makes a machine learning algorithm work with the Django REST Framework How it works T

The Reaper 1 Sep 28, 2021
Use webpack to generate your static bundles without django's staticfiles or opaque wrappers.

django-webpack-loader Use webpack to generate your static bundles without django's staticfiles or opaque wrappers. Django webpack loader consumes the

2.4k Dec 24, 2022
Highlight the keywords of a page if a visitor is coming from a search engine.

Django-SEKH Django Search Engine Keywords Highlighter, is a middleware for Django providing the capacities to highlight the user's search keywords if

Julien Fache 24 Oct 08, 2021
Hotwired/Turbo Django response helpers

This package provides helpers for server-side rendering of Hotwired/Turbo streams and frames. Disclaimer: the Hotwired/Turbo client libraries are, at

Hotwire for Django 66 Apr 07, 2022
Declarative model lifecycle hooks, an alternative to Signals.

Django Lifecycle Hooks This project provides a @hook decorator as well as a base model and mixin to add lifecycle hooks to your Django models. Django'

Robert Singer 1k Dec 31, 2022
Django app for building dashboards using raw SQL queries

django-sql-dashboard Django app for building dashboards using raw SQL queries Brings a useful subset of Datasette to Django. Currently only works with

Simon Willison 383 Jan 06, 2023
This is a repository for a web application developed with Django, built with Crowdbotics

assignment_32558 This is a repository for a web application developed with Django, built with Crowdbotics Table of Contents Project Structure Features

Crowdbotics 1 Dec 29, 2021
A Django web application to receive, virus check and validate transfers of digital archival records, and allow archivists to appraise and accession those records.

Aurora Aurora is a Django web application that can receive, virus check and validate transfers of digital archival records, and allows archivists to a

Rockefeller Archive Center 20 Aug 30, 2022
Auth module for Django and GarpixCMS

Garpix Auth Auth module for Django/DRF projects. Part of GarpixCMS. Used packages: django rest framework social-auth-app-django django-rest-framework-

GARPIX CMS 18 Mar 14, 2022
Utilities to make function-based views cleaner, more efficient, and better tasting.

django-fbv Utilities to make Django function-based views cleaner, more efficient, and better tasting. 💥 📖 Complete documentation: https://django-fbv

Adam Hill 49 Dec 30, 2022
The friendly PIL fork (Python Imaging Library)

Pillow Python Imaging Library (Fork) Pillow is the friendly PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lund

Pillow 10.4k Jan 03, 2023
Inject an ID into every log message from a Django request. ASGI compatible, integrates with Sentry, and works with Celery

Django GUID Now with ASGI support! Django GUID attaches a unique correlation ID/request ID to all your log outputs for every request. In other words,

snok 300 Dec 29, 2022
Simple yet powerful and really extendable application for managing a blog within your Django Web site.

Django Blog Zinnia Simple yet powerful and really extendable application for managing a blog within your Django Web site. Zinnia has been made for pub

Julien Fache 2.1k Dec 24, 2022
Django Fett is an incomplete code generator used on several projects

Django Fett Django Fett is an incomplete code generator used on several projects. This is an attempt to clean it up and make it public for consumption

Jeff Triplett 6 Dec 31, 2021
Fully reponsive Chat Application built with django, javascript, materialUi, bootstrap4, html and css.

Chat app (Full Stack Frameworks with Django Project) Fully reponsive Chat Application built with django, javascript, materialUi, bootstrap4, html and

1 Jan 19, 2022
GeoDjango provides geospatial extensions to the Django web dev framework

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. All documentation is in the "docs" directo

Paul Smith 20 Sep 20, 2022
CRUD with MySQL, Django and Sass.

CRUD with MySQL, Django and Sass. To have the same data in db: insert into crud_employee (first_name, last_name, email, phone, location, university) v

Luis Quiñones Requelme 1 Nov 19, 2021