-
Notifications
You must be signed in to change notification settings - Fork 21
External Database
kannibalox edited this page Jan 30, 2022
·
1 revision
While the default SQLite database should be sufficient for almost all use cases, PtpUploader supports using an external database such as PostgreSQL or MariaDB/MySQL.
pip install psycopg2
- In config.yml, add a new section
DATABASES:
default:
ENGINE: 'django.db.backends.postgresql_psycopg2'
NAME: 'ptpuploader'
USER: 'ptpuploader'
PASSWORD: 'PtPuPlOaDeR'
HOST: 'sql.example.com'
PORT: ''
For more details, see Django's database documentation: https://docs.djangoproject.com/en/3.2/ref/databases/