Skip to content

Instantly share code, notes, and snippets.

@iris9112
Last active January 18, 2020 04:13
Show Gist options
  • Save iris9112/60daf775d8526f96c249813488809cdf to your computer and use it in GitHub Desktop.
Save iris9112/60daf775d8526f96c249813488809cdf to your computer and use it in GitHub Desktop.
Summary of useful commands, which I always forget

GIT

git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "[email protected]"

UBUNTU

VIRTUAL ENVS

DJANGO

Creation

django-admin startproject <proyecto>
python manage.py createsuperuser
python manage.py startapp my_app

## server
python manage.py collectstatic
python manage.py runserver

## Migrations
python manage.py showmigrations
python manage.py makemigrations my_app
python manage.py migrate --fake my_app zero
python manage.py migrate my_app

DOCKER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment