python3 -m venv django
source django/bin/activate
pip3 install -r requirements.txt
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql
sudo -u postgres psql
CREATE ROLE admin WITH LOGIN PASSWORD 'password';
sudo -i -u postgres
psql
CREATE DATABASE menu;
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py createsuperuser
Finally:
python3 manage.py runserver