sudo pacman -S docker docker-compose
Add user to docker group, first crate docker group:
sudo groupadd docker
Now add your user to the docker group.
sudo usermod -aG docker $USER
Finally retart session and run docker
systemctl start docker
Now create app with the next command
sh begin_django_project.sh -n <app_name>
before run replace in settings.py this code:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
for this one:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'db',
'PORT': 5432,
}
}
and begin with:
sh run.sh