STAY INFORMED
following content serves as a personal note and may lack complete accuracy or
certainty.
Minimal-Mistakes instruction
Useful vscode Shortcut Keys
Unix Commands
npm Commands
Vim Commands
Git Note
Useful Figma Shortcut Keys
Django Environment Setup
Mac
Install VSCode
Install Homebrew
Install pyenv, pyenv-virtualenv
brew install pyenv
setup pyenv
for bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init --path)"' >> ~/.profile
echo 'if [ -n "$PS1" -a -n "$BASH_VERSION" ]; then source ~/.bashrc; fi' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
for zsh
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
Windows
Install VSCode
Install WSL:
search ‘windows 기능’ - windows 기능 켜기/끄기 - check ‘Linux용 windows 하위 시스템 항목’ - restart - search ‘store’ - microsoft store - search ‘ubuntu’ - install ubuntu
sudo apt-get update
sudo apt-get install -y make build-essential \
libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev \
wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev git python-pip sqlite3
Install WSL - Remote in VSCode
curl https://pyenv.run | bash
Install pyenv, pyenv-virtualenv
for bash
sed -Ei -e '/^([^#]|$)/ {a \
export PYENV_ROOT="$HOME/.pyenv"
a \
export PATH="$PYENV_ROOT/bin:$PATH"
a \
' -e ':a' -e '$!{n;ba};}' ~/.profile
echo 'eval "$(pyenv init --path)"' >>~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
for zsh
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zprofile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zprofile
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init --path)"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
After
Install Python
pyenv install --list
and choose a version
pyenv virtualenv [version] [django_[name]_env]
Install django
pip3 install django==[version]
set virtual environmnet
Move to directory that you want to work and
pyenv local [name]
Creating project
django-admin startproject [project-name]
Creating App
Move to root directory and
python manage.py startapp [app-directory-name]
After, you need to register your app in setting.py.
Go to settings.py file and add ‘app-directory-name’ in INSTALLED-APPS list.
Run Server
move to ‘project-name’
manage.py runserver