全文検索:
- 2023.12.14 React-adminとDjangoの連携 @50_dialy:2023:12
- b import models class Product(models.Model): name = models.CharField(max_length=200) price = mo... ield() def __str__(self): return self.name </code> === マイグレーションファイル作成 === $ docker-comp... s = [ migrations.CreateModel( name='Product', fields=[ (... =True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField
- 2023.06.03 Django アプリ追加 @50_dialy:2023:06
- (level=logging.INFO) logger = logging.getLogger(__name__) class View(TemplateView): template_name = "test.html" def get(self, request): cont... return render(self.request, self.template_name, context) def post(self, request): co... on': request.POST.get('action'), 'name1': request.POST.get('name1'), 'na
- 2024.04.12 MySQL bitフィールド @50_dialy:2024:04
- t(11) | NO | PRI | NULL | auto_increment | | name | text | YES | | NULL | ... rows in set (0.00 sec) mysql> insert into test (name,enabled) VALUES('AAA',b'1'); Query OK, 1 row affected (0.01 sec) mysql> insert into test (name,enabled) VALUES('BBB',b'0'); Query OK, 1 row affe... elect * from test; +----+------+---------+ | id | name | enabled | +----+------+---------+ | 1 | AAA |
- 2024.04.17 WSL2 ディストリビューション削除 @50_dialy:2024:04
- 84 を削除してみる。 <code> C:\Users\s-matsui>wsl -l -v NAME STATE VERSION * Ubunt... 除。 この操作を正しく終了しました。 C:\Users\s-matsui>wsl -l -v NAME STATE VERSION * Ubunt... 除。 この操作を正しく終了しました。 C:\Users\s-matsui>wsl -l -v NAME STATE VERSION * Ubunt
- 2024.02.06 docker-mailserverアップデート @50_dialy:2024:02
- mailserver/docker-mailserver:latest container_name: mailserver ↓ services: mailserver: #image... erver:latest image: mailserver2 container_name: mailserver </code> ===== 5.コンテナ読み込み ===== <cod
- 2023.05.30 chatgpt-clone @50_dialy:2023:05
- ョン4にしてあげると起動できます。 <code> mongodb: container_name: chat-mongodb ports: - 27018:27017
- 2023.10.18 Wifiの優先順位変更 @50_dialy:2023:10
- -030531.png}} <code> netsh wlan set profileorder name=WiFiAP interface=Wi-Fi priority=1 </code> インターフェ
- 2023.12.12 1366, "Incorrect string value: @50_dialy:2023:11:12
- { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'db', 'USER': 'root', 'PASSWORD': 'pass