Skip to content

vnk8071/deploy-website-django-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy my website by Django and Heroku

My website: https://khoivn.herokuapp.com

First of all, I want to especially thank Mr. Chau from How Kteam community for providing detailed instructions on Youtube about this blog project. Besides, I also refer to the implementation process on the website of the Corey Schafer Youtube channel

Usage

Install heroku:

pip install --classic heroku

Login heroku and change directory to deploy-website-heroku:

heroku login

cd deploy-website-heroku

heroku create

Install all packages in local machine:

pip install -r requirements.txt

Create database by Heroku Postgres

heroku addons

heroku addons:create heroku-postgresql:hobby-dev

(With 1 account just have 1 database free on heroku is name hobby-dev)

In my website, I use git of heroku and it is the same with Github.

git init

git add . 

git commit -m "message commit"

Deploying code

git push heroku main

And enjoy to your website by [nameofrepository].herokuapp.com

About

Practice web application with Django and deploy on Heroku

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published