Skip to content

Instantly share code, notes, and snippets.

View danielotieno's full-sized avatar
🇰🇪
Always Be Learning

Daniel Otieno danielotieno

🇰🇪
Always Be Learning
View GitHub Profile
@danielotieno
danielotieno / django_cheat_sheet.md
Created March 13, 2019 19:23 — forked from bradtraversy/django_cheat_sheet.md
Django command cheat sheet

Django 2.x Cheat Sheet

Creating a virtual environment

We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder

python -m venv ./venv
@danielotieno
danielotieno / django_deploy.md
Created March 13, 2019 19:24 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean

Django Deployment to Ubuntu 18.04

In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc

Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server

Create A Digital Ocean Droplet

Use this link and get $10 free. Just select the $5 plan unless this a production app.

@danielotieno
danielotieno / install virtualenv ubuntu 16.04.md
Created February 12, 2020 10:16 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv