move to postgres

This commit is contained in:
Basyrov Rustam
2025-06-04 23:00:31 +03:00
parent 695630bf6b
commit d9096b6c97
2 changed files with 9 additions and 2 deletions

View File

@@ -77,8 +77,12 @@ WSGI_APPLICATION = "mysite.wsgi.application"
DATABASES = { DATABASES = {
"default": { "default": {
"ENGINE": "django.db.backends.sqlite3", "ENGINE": "django.db.backends.postgresql",
"NAME": BASE_DIR / "db.sqlite3", "OPTIONS": {
"service": "my_service",
"passfile": ".pgpass",
},
"PASSWORD":"example",
} }
} }

View File

@@ -2,5 +2,8 @@ asgiref==3.8.1
Django==5.2.1 Django==5.2.1
django-debug-toolbar==5.2.0 django-debug-toolbar==5.2.0
pip==23.0.1 pip==23.0.1
psycopg==3.2.9
psycopg-binary==3.2.9
setuptools==66.1.1 setuptools==66.1.1
sqlparse==0.5.3 sqlparse==0.5.3
typing_extensions==4.14.0