Build a Backend REST API with Python & Django







Use the below Git commands in the Windows Command Prompt or macOS Terminal.

Configure default email and name

git config --global "[email protected]"
git config --global "Your Name"

Initialise a new Git repository

git init

Commit changes to Git

git add .
git commit -am "Commit message"

Set Git remote

git remote add origin 
git push -u origin master


Push changes to GitHub

git push origin

SSH Key Management

The below commands are used to manage SSH keys on your local development machine.

Checking for existing SSH key

ls ~/.ssh/

Print contents of public key

cat ~/.ssh/

Generate new SSH key on your local machine

ssh-keygen -t rsa -b 4096 -C "EMAIL ADDRESS"

Django Management Commands

Create new Django project startproject profiles_project  .

Create new Django app

python startapp profiles_api

Start Django development server

python runserver

Create database migrations file

python makemigrations

Run migrations

python migrate

Create new superuser

python createsuperuser

AWS Public IPv4 DNS

Download source code from Github

Download ZIP

Submit resources