Piko Can Fly
Piko Can Fly
  • 28
  • 88 768
How to Deploy a Django Project on Python Anywhere with MySQL Database [free] | Live Coding Tutorial
Let's deploy a Django e-commerce project on PythonAnywhere together! PythonAnywhere offers an easy-to-use platform with free hosting and a built-in MySQL database, making it an excellent choice for deploying Django apps. We’ll walk through the entire deployment process, from cloning the project to setting up the MySQL database and configuring Django’s settings.
Whether you’re a beginner or an experienced developer, PythonAnywhere simplifies deployment with its browser-based interface and great support. By the end of this tutorial, you’ll have a fully functional Django project running live online!
*Time Stamps*
0:00 - What we will do? ( deploying an E-Commerce Site )
Overview of the tutorial and deploying a Django project on PythonAnywhere.
0:49 - Creating a PythonAnywhere Account
Learn how to create a free account on PythonAnywhere and set up a workspace.
1:38 - Cloning the Django Project
Clone your e-commerce project from GitHub into PythonAnywhere.
2:40 - Creating a Virtual Environment
Setting up a virtual environment to isolate dependencies for your Django project.
3:39 - Installing Project Requirements
Install all required Python packages from the requirements.txt file.
4:18 - Setting Up a Web App
Creating a web app on PythonAnywhere and configuring it for manual setup.
5:40 - Configuring WSGI File
Edit the WSGI file for the Django application to work with PythonAnywhere's server.
6:57 - Creating and Configuring the MySQL Database
Set up a MySQL database on PythonAnywhere and configure Django to connect to it.
9:42 - Running Migrations
Apply database migrations using Django’s manage.py tool.
12:08 - Collecting Static Files
Use collectstatic to gather and serve static files (CSS, JavaScript) in production.
13:02 - Verifying the Website is Live
Check the live website and troubleshoot missing CSS.
14:28 - Creating a Superuser for Admin Access
Set up a superuser to access Django's admin panel and manage the site.
15:57 - Adding Products via Admin Panel
Learn how to add products to the e-commerce website through the Django admin interface.
17:41 - Final Testing
Test the live website to ensure products and the site function correctly.
18:04 - Conclusion and Resources
*E-commerce site Github Repo:*
github.com/PikoCanFly/E-commerce-Site-with-Django-and-TailwindCSS
*PythonAnyWhere Tutorials:*
Deploying an existing Django project on PythonAnywhere:
help.pythonanywhere.com/pages/DeployExistingDjangoProject/
*Using MySQL:*
help.pythonanywhere.com/pages/UsingMySQL/
#django #python #deploy #pythonanywhere #fullstack
Переглядів: 1 842

Відео

Always do this when starting a new Django Project! Custom User Guide for Beginners [ Python Django ]
Переглядів 878Місяць тому
When starting a new Django project, there's one step you can't afford to skip: setting up a custom user model. It might seem like an extra step, but trust me, this simple setup will save you hours-or even days-of frustration later on. In this video, I’ll walk you through the process of setting up your custom user model from start to finish, explain why it’s essential, and show you the pitfalls ...
Python Django & Next.js: JWT Authentication with HttpOnly Cookies | Complete Project Tutorial
Переглядів 1,7 тис.Місяць тому
In this video, we'll build a secure, token-based authentication system using Django for the backend and Next.js for the frontend. We’ll cover everything from setting up a custom user model and APIs to implementing access token refresh, blacklisting, and seamless cookie-based authentication in the frontend using Axios. ⁹ What We’ll do: - Create a Custom User Model to authenticate users with emai...
Blog Site with Django + Wagtail CMS : Complete Project Tutorial | Beginner Friendly Guide
Переглядів 2,3 тис.2 місяці тому
In this step by step tutorial we will create a robust and feature-rich blog application using Wagtail CMS, a modern and flexible content management system built on top of Django. Whether you're new to web development or looking to expand your skills, this project will guide you through creating a dynamic and visually appealing blog platform with ease. Our blog will include basic and advanced fe...
Create and Publish a Chrome Extension on Chrome Web Store | Step by step Guide | JS Project
Переглядів 7013 місяці тому
A complete step-by-step guide on how to build your very own Chrome extension, even if you're a complete beginner! We'll start from scratch by creating an extension directory, writing a manifest.json file, and adding functionality with JavaScript. I'll show you how to build a useful extension that interacts with webpages, complete with a popup menu and hotkey functionality. You’ll learn: How to ...
Easily Add Dynamic Content Loading to Django App with HTMX (Asynchronous Page Loading ) Tutorial
Переглядів 1,6 тис.5 місяців тому
In this video, we take a static Django page that requires full-page reloads and turn it into a dynamic, responsive page with asynchronous content loading using HTMX-all without writing a single line of JavaScript! 🌟 What You'll Learn: How to integrate HTMX into your existing Django project. Why full-page reloads can negatively impact user experience. How to enhance your web application with dyn...
Build an E-commerce Website with Python Django & TailwindCSS - Complete Project Tutorial
Переглядів 9 тис.5 місяців тому
In this step-by-step tutorial, we'll be creating a fully functional e-commerce website using Django. You'll learn how to build a site where users can browse products by categories, add items to their cart, and manage their orders from start to finish. We'll also make it easy to expand your site by adding more products and categories, and tracking user orders. The best part? We'll use TailwindCS...
Coding the same project twice at the same time with Django and Wagtail to compare | Tutorial
Переглядів 2,5 тис.6 місяців тому
In this live coding adventure we code two blog websites at the same time. We use Django for one and Wagtail for the other. Wagtail is a content management system (CMS) built on top of Django so essentially we use the Django for both 😅. Nonetheless, we discover how much easier and more convenient it can be to use Wagtail when a content management system is required. Chapters: 00:00 - I think you...
Django Models Beginner Friendly Guide | Python Web Development
Переглядів 7087 місяців тому
In this video we explain and simplify Django models which are a major foundation for any project created with Django. We start out by explaining what Django models are and how to create and manage a database when using Django, then we will create our own model, learn about different fields, meta data options, how to define the string method and how to create a one to many relationship between y...
Python Django : How to Combine makemigrations, migrate and runserver management commands
Переглядів 5919 місяців тому
In this video we'll see how easy it is to create custom commands in Django. It can be tiring to type "python manage.py makemigrations" then "python manage.py migrate" then "python manage.py runserver". The good news is we can just combine those commands in one command quickly and easily which can end up saving us so much time especially when working with projects where we have to repeatedly mak...
JWT Authentication System in Django and React.js Full Stack Application | Complete Project Tutorial
Переглядів 9 тис.9 місяців тому
In this step by step tutorial, we will create a full-stack web application complete with JWT based authentication. We will use Django DRF for the backend and React.js for frontend. We will create Restful APIs to handle user registration, login, logout, user information retrieval, and token refreshing using Django Rest Framework. After that we will consume our API endpoints by making HTTP reques...
Electron JS Inter Process Communication ( IPC ) Explained - 2024 Beginner Friendly Guide
Переглядів 3,2 тис.10 місяців тому
Electron.js makes creating Desktop apps very easy especially if you are already familiar with JavaScript, CSS and html. However, there are a few concepts to that might need getting used to one of them of is inter process communication and that's what this video is about! We will start out by going through processes in Electron. Then we will create an Electron app to start learn how to implement...
Easy & Beautiful Sky Animation | HTML + CSS + Vanilla JavaScript Beginner Friendly Tutorial
Переглядів 61010 місяців тому
☁️ We will create a beautiful animated sky background with CSS, HTML and vanilla JavaScript. ☁️Cloud Image: github.com/PikoCanFly/sky-animation/blob/main/cloud.png ⏱️ Chapters: 00:00 - Did you know you can make awesome sky animation super quickly? 00:15 - Create project directory, open it in VSC and create an HTML, CSS and JS files within it. 00:45 - Add Boilerplate to HTML file and link CSS, a...
Building a Desktop App with Electron JS and React JS [ Timer Overlay ] | A Step-by-step Tutorial
Переглядів 12 тис.10 місяців тому
In this tutorial we will build a timer-overlay desktop application from scratch using Electron.js and React.js. Our app will display a timer overlay on our screen, allowing us to track time while working on other tasks. We’ll also implement an overlay mode that can be toggled with keyboard shortcuts. To make our app visually appealing, we’ll style it using Tailwind CSS. ⏰ Chapters: 00:00 - Intr...
My favorite Python Django Open Source Projects
Переглядів 6 тис.11 місяців тому
My favorite Python Django Open Source Projects
Python Django Custom Authentication with Email Verification - Complete Project Tutorial
Переглядів 5 тис.Рік тому
Python Django Custom Authentication with Email Verification - Complete Project Tutorial
Python Django Authentication System with Password Reset; Complete Project Beginner Friendly Tutorial
Переглядів 12 тис.Рік тому
Python Django Authentication System with Password Reset; Complete Project Beginner Friendly Tutorial
Python Django Project Complete Step by Step Guide "How-sorry-are-you-quiz" | Full Stack Dev Tutorial
Переглядів 3,8 тис.Рік тому
Python Django Project Complete Step by Step Guide "How-sorry-are-you-quiz" | Full Stack Dev Tutorial
Estimation Game with Vanilla JavaScript + SVG + Web Audio API [ Live Coding Tutorial ]
Переглядів 1,9 тис.Рік тому
Estimation Game with Vanilla JavaScript SVG Web Audio API [ Live Coding Tutorial ]
Recursion - A beginner friendly guide for Self Taught JavaScript Developers
Переглядів 626Рік тому
Recursion - A beginner friendly guide for Self Taught JavaScript Developers
Generate Endless Fractal Trees with this function! Easy JavaScript Tutorial
Переглядів 564Рік тому
Generate Endless Fractal Trees with this function! Easy JavaScript Tutorial
Object Oriented Programming in JavaScript: Build a Breakout Game (JavaScript Tutorial for Beginners)
Переглядів 586Рік тому
Object Oriented Programming in JavaScript: Build a Breakout Game (JavaScript Tutorial for Beginners)
Create drawing style animation for any SVG logo with javaScript and CSS in less than 20 minutes
Переглядів 473Рік тому
Create drawing style animation for any SVG logo with javaScript and CSS in less than 20 minutes
Create your own SVG random wave generator in less than 15 minutes! Quick JS frontend quick tutorial
Переглядів 714Рік тому
Create your own SVG random wave generator in less than 15 minutes! Quick JS frontend quick tutorial
Create a blob creature generator - SVG + React.js [JavaScript Project Tutorial ]
Переглядів 259Рік тому
Create a blob creature generator - SVG React.js [JavaScript Project Tutorial ]
Learn Electron js by creating an Always On Top Browser
Переглядів 8 тис.Рік тому
Learn Electron js by creating an Always On Top Browser