# systemctl enable --now tftp
# firewall-cmd --add-service=tftp --permanent
# firewall-cmd --reload
# dnf -y install dhcp-server
# vi /etc/dhcp/dhcpd.conf
# systemctl enable --now dhcpd
# firewall-cmd --add-service=dhcp --permanent
きれいにまとめてある。
https://qiita.com/KeAt/items/55fdedc8cac7c6852043
https://opendata-web.site/blog/entry/22/
Django公式
https://docs.djangoproject.com/ja/3.0/ref/models/fields/
https://docs.djangoproject.com/ja/3.0/ref/models/querysets/
save() 追加または更新
create() オブジェクトの作成と保存を一つの処理で行う
add() ManyToManyFieldのデータ追加
update() 一括更新
get_or_create() データを取得、なければ追加
update_or_create() データを更新、なければ追加
bulk_create() 一括追加
【書き込み】
Store( s_uuid = user.uuid,
c_uuid = data['uuid'],
scode = scode,
loc_a_uuid = form.instance.a_uuid,
date_update = datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'),
date_joined = form.instance.date_joined,
).save( using='default')
【読み込み】
qs = Store.objects.filter( pk=uuid ).last()
qs = Store.objects.get( pk=uuid )
scode = qs.scode
so = Store.objects.filter( s_uuid=uuid ).first()
so = Store.objects.filter( s_uuid=uuid ).last()
qs0 = Store.objects.filter( s_uuid=uuid )
so = Store.objects.get( pk=uuid )
qs1 = Store.objects.values('c_uuid','scode')
dc = Store.objects.values('c_uuid','scode').first()
scode = so.gcode
scode = qs0.first().scode
scode = qs1.scode
scode = dc[ 'scode' ]
【postgres】 dnf -y install postgresql15-server postgresql15-server-devel postgresql-setup initdb passwd postgres vi `find / -name pg_hba.con...