Install Node 12:
sudo apt update
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt -y install nodejs
sudo apt -y install gcc g++ make
$ node --version
v12.10.0
$ npm --version
6.10.3
rm -f package-lock.json
sudo npm install
sudo npm audit fix
sudo npm run build
pip install -r requirements.txt
(same: cat requirements.txt | xargs -n 1 pip install)
python manage.py makemigrations
python manage.py migrate
python manage.py seed all
python manage.py seed all --refresh
admin
admin (or `SUPERUSER_PASS={password}` in env)
first install:
pip install django==2.2
then install:
pip install django==3.0.2
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.9
python3.9 --version
sudo apt install python3.9-venv
python3.9 -m pip install --user --upgrade pip
python3.9 -m pip install --user virtualenv
python3.9 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install --upgrade -r requirements.txt # upgrade all packages
deactivate
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
pip freeze > requirements.txt
pip install pipupgrade
pipupgrade --verbose --latest --yes
pip freeze > requirements.txt
cd {django-project-folder}/
find . -path "*/migrations/*.py" -not -name "__init__.py" -not -path "*/geodata/*" -delete
find . -path "*/migrations/*.pyc" -not -path "*/geodata/*" -delete
celery -A core_backend worker --loglevel=DEBUG
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
https://github.com/django/daphne/issues/262 https://stackoverflow.com/questions/55916808/django-channels-reader-at-end-of-file-exception