mirror of
https://git.kotyczka.ch/developers/django.git
synced 2025-04-07 00:03:32 +02:00
postgres integrated
This commit is contained in:
parent
8ff81e1df6
commit
656d206552
BIN
pyapp/db.sqlite3
BIN
pyapp/db.sqlite3
Binary file not shown.
Binary file not shown.
@ -81,12 +81,22 @@ WSGI_APPLICATION = 'pyapp.wsgi.application'
|
|||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
||||||
|
|
||||||
|
# DATABASES = {
|
||||||
|
# 'default': {
|
||||||
|
# 'ENGINE': 'django.db.backends.sqlite3',
|
||||||
|
# 'NAME': BASE_DIR / 'db.sqlite3',
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
'NAME': 'pyapp',
|
||||||
}
|
'USER': 'pyapp',
|
||||||
}
|
'PASSWORD': 'kotyczka',
|
||||||
|
'HOST': '192.168.0.9',
|
||||||
|
'PORT': '5434',
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
|
@ -10,4 +10,10 @@ create table pyapp_shoppingitem as select * from migration_shoppingitem where 1
|
|||||||
commit;
|
commit;
|
||||||
|
|
||||||
drop table pyapp_product
|
drop table pyapp_product
|
||||||
commit;
|
commit;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
select * from pyapp_shoppingitem;
|
||||||
|
|
||||||
|
delete from pyapp_shoppingitem where name like 'Proxy';
|
Loading…
x
Reference in New Issue
Block a user