Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Django 4 for the Impatient

You're reading from   Django 4 for the Impatient Learn the core concepts of Python web development with Django in one weekend

Arrow left icon
Product type Paperback
Published in Jun 2022
Publisher Packt
ISBN-13 9781803245836
Length 190 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Greg Lim Greg Lim
Author Profile Icon Greg Lim
Greg Lim
Daniel Correa Daniel Correa
Author Profile Icon Daniel Correa
Daniel Correa
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Chapter 1: Installing Python and Django 2. Chapter 2: Understanding the Project Structure and Creating Our First App FREE CHAPTER 3. Chapter 3: Managing Django URLs 4. Chapter 4: Generating HTML Pages with Templates 5. Chapter 5: Working with Models 6. Chapter 6: Displaying Objects from Admin 7. Chapter 7: Understanding the Database 8. Chapter 8: Extending Base Templates 9. Chapter 9: Creating a Movie Detail Page 10. Chapter 10: Implementing User Signup and Login 11. Chapter 11: Letting Users Create, Read, Update, and Delete Movie Reviews 12. Chapter 12: Deploying the Application to the Cloud 13. Other Books You May Enjoy

Cloning our code on to PythonAnywhere

PythonAnywhere is a web-hosting service (https://www.pythonanywhere.com/). You can host, run, and code Python in the cloud. It also offers some free services, which we will use.

The steps to deploy an existing Django project on PythonAnywhere can be found at https://help.pythonanywhere.com/pages/DeployExistingDjangoProject/, but I will go through them with you here.

Now that we have our code on GitHub, we will have PythonAnywhere retrieve our code from there:

  1. First, create a beginner free account in PythonAnywhere here: https://www.pythonanywhere.com/registration/register/beginner/.
  2. In PythonAnywhere, click on Dashboard | New console | $ Bash to access its Linux Terminal (Figure 12.7):

Figure 12.7 – Creating a new console

  1. This will open a Bash console. Back in your GitHub repository, click on Code and copy the URL to clone (Figure 12.8):

Figure 12.8 – Copying...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image