Skip to content

Instantly share code, notes, and snippets.

Avatar

J Sikes TechRancher

  • Missouri
View GitHub Profile
View django_admin_command_list.md

Django-Admin Command List

This is a list of the different django-admin commands

# Allows changing a user's password. It prompts you to enter a new password twice for the given user.
django-admin changepassword <username>

# Checks the entire django project of potential problems
django-admin check
@TechRancher
TechRancher / coding_style_checklist.md
Created Jul 25, 2020
Coding Style For Django Plus Best Practice Coding Tips
View coding_style_checklist.md

Coding Style For Django

Please follow these coding standards when writing code for inclusion in Django. - Django Documentation

Python Style

  • Use EditorConfig or conform to the indentation style dictated in the .editorconfig file
  • Use 4 spaces for indentation with Python and 2 indentation spaces for HTML files.
  • Use PEP 8 Python style as a guide
  • Use flake8 to check for problems in this area. But Django has line lengths rules that are different then PEP 8 recommends.
@TechRancher
TechRancher / vscode_shortcuts.md
Created Jul 24, 2020
Visual Code Studio Keyboard Shortcuts
View vscode_shortcuts.md

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@TechRancher
TechRancher / django_deployment.md
Last active Jul 25, 2020 — forked from alphaolomi/django_cheat_sheet.py
[Django] Cheat Sheet #python #django
View django_deployment.md

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.

@TechRancher
TechRancher / pipenv_cheat_sheet.md
Last active Mar 12, 2020 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands
View pipenv_cheat_sheet.md

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@TechRancher
TechRancher / vanilla-js-cheatsheet.md
Created Apr 9, 2019 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
View vanilla-js-cheatsheet.md
@TechRancher
TechRancher / Basic Ubuntu Commands.md
Last active Aug 20, 2019
Ubuntu 18.04 Terminal Commands
View Basic Ubuntu Commands.md

Basic Ubuntu Commands

This is a list of the most basic but extremely useful commands. Learning these will help you have a strong foundation to add more sophisticated commands upon.

Here are some words that we use and some meanings that you may associate them with.

We use What you may know them as
directory folder
sudo Run as Administor
View terminal-cheat-sheet.txt
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@TechRancher
TechRancher / django_deploy.md
Last active Mar 12, 2019 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean
View django_deploy.md

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.

@TechRancher
TechRancher / README-Template.md
Created Nov 28, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You can’t perform that action at this time.