並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 62件

新着順 人気順

peeweeの検索結果1 - 40 件 / 62件

  • peewee

    3連休の最終日。お休みが終わってしまうと思うと 少し寂しいですね。今日も東京 神奈川は爽やかな晴れです。連休中お天気に恵まれてよかったです。日中は暖かくても夜になると冷え込みますね。外出の際には羽織る物を持って…。

    • PEEWEE 【CSSテンプレート・APESKIN】

      About this Site 個人サイト向けのHTMLとCSSでデザインしたテンプレートと 2apes様のapeboard+のSKINを無料で配布しています。 [別館] 素材・HTML配布サイト About Link 【サイト名】 PEEWEE 【管理人】 まりすけ 【アドレス】 http://peewee.corcor.info/ 【SINCE】 2005/11/03 トップページのみリンクフリー。直リンク推薦 ▲Pagetop

      • PythonのORMのPeeweeを使ってデータベースを操作してみる(2019年8月版) - Qiita

        概要 peeweeはPython用のORMです。 以下のデータベースの操作が行えます。 ・SQLite ・MySQL ・Postgres ・AWSP ・BerkeleyDatabase(未検証) 詳細は下記のドキュメントを参照してください。 https://peewee.readthedocs.org/en/latest/index.html 更新履歴 2019.08.03 サンプルコードを変更 Python2.7 → Python3.7 & Peewee 3.9.6 環境 Windows10 Python 3.7.4(32bit) Peewee 3.9.6 インストール方法 from peewee import * from datetime import date db = SqliteDatabase(':memory:') class Person(Model): name = C

          PythonのORMのPeeweeを使ってデータベースを操作してみる(2019年8月版) - Qiita
        • Bottleとpeeweeを使ってゲストブックアプリケーションを作ってみた - 偏った言語信者の垂れ流し

          Python用のWebフレームワークであるBottleと、O/Rマッパーのpeeweeを使って、Python Professional Programmingの2章のゲストブックアプリケーションを作ってみた。 試したバージョンは、Python2.7、Python3.3、Bottle0.11.6、peewee2.1.5。 ソースコード guestbook.py # coding: utf-8 import os from datetime import datetime import peewee from bottle import route, get, post, request, run from bottle import template, static_file, redirect, html_escape BASE_DIR = os.path.dirname(os.path.

            Bottleとpeeweeを使ってゲストブックアプリケーションを作ってみた - 偏った言語信者の垂れ流し
          • charles leifer | Peewee, a lightweight Python ORM - Original Post

            Peewee, a lightweight Python ORM - Original Post November 28, 2010 15:01 / database django orm peewee python / 15 comments Edit I rewrote peewee from the ground up. The query examples in this post are no longer supported. Edit, Jul 24, 2011: added support for Postgresql and MySQL (in addition to SQLite). Edit, June 8, 2011: added support for MySQL For the past month or so I've been working on writ

            • SQLAlchemyとpeeweeの比較 - PYTHONIC BOOM BOOM HEAD

              とりあえず導入部分だけざっくりと。 データベースへの接続 SQLAlchemy from sqlalchemy import create_engine engine = create_engine('sqlite:///:memory:', echo=True) peewee from peewee import SqliteDatabase engine = SqliteDatabase('db.sqlite') engine.connect() peeweeでsqlite:///:memory:する方法はめんどくさくて調べてません... ※2012.1.15 追記 peewee.SqliteDatabase(":memory:")でいけた モデルの定義 SQLAlchemy from sqlalchemy import Column, Integer, String, BOOLEAN

                SQLAlchemyとpeeweeの比較 - PYTHONIC BOOM BOOM HEAD
              • PEEWEE 【CSSテンプレート・APESKIN】

                About this Site 個人サイト向けのHTMLとCSSでデザインしたテンプレートと 2apes様のapeboard+のSKINを無料で配布しています。 [別館] 素材・HTML配布サイト About Link 【サイト名】 PEEWEE 【管理人】 まりすけ 【アドレス】 http://peewee.corcor.info/ 【SINCE】 2005/11/03 トップページのみリンクフリー。直リンク推薦 ▲Pagetop

                • GitHub - coleifer/peewee: a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - coleifer/peewee: a small, expressive orm -- supports postgresql, mysql, sqlite and cockroachdb
                  • PEEWEE 【CSSテンプレート・APESKIN】

                    About this Site 個人サイト向けのHTMLとCSSでデザインしたテンプレートと 2apes様のapeboard+のSKINを無料で配布しています。 [別館] 素材・HTML配布サイト About Link 【サイト名】 PEEWEE 【管理人】 まりすけ 【アドレス】 http://peewee.corcor.info/ 【SINCE】 2005/11/03 トップページのみリンクフリー。直リンク推薦 ▲Pagetop

                    • peewee — peewee 3.17.3 documentation

                      peewee Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. a small, expressive ORM python 2.7+ and 3.4+ supports sqlite, mysql, mariadb, postgresql and cockroachdb tons of extensions Peewee’s source code hosted on GitHub. New to peewee? These may help: Quickstart Example twitter app Using peewee interactively Models and fields Quer

                      • Python の ORM 調査:peewee編

                        このblogは、著者である「sakito」が技術的に生存している事を報告するために存在します タイトルを「紹介マニアどらふと版」から変更しました 概要 Python の ORM を調査中。今回は小さいサイズで使いやすそうな「peewee」を調査してみる。 peeweeに関して 公式サイト:http://peewee.readthedocs.org/ pypi:http://pypi.python.org/pypi/peewee/ ライセンス:MIT 最新:1.0.0(2012-08-26) Python3対応:× 対応RDB:PostgreSQL,MySQL,SQLite3 「peewee」は「a little orm」と記述されているように、小さいサイズのORM。 ライセンスはMIT。Python 3 には今の所対応していない。 対応RDBは、PostgreSQL、MySQL、SQLit

                        • PythonのORM Peeweeの日本語ドキュメント — peewee 2.10.2 ドキュメント

                          PythonのORM Peeweeの日本語ドキュメント¶ Peeweeはシンプルで小さなORMです。それは表現力が豊かですが概念はほとんどなく、学びやすく直感的に使うことができます。 小さく表現力のあるORM Pythonで書かれ、バージョン2.6+および3.2+をサポートしています。 sqlite、mysql、postgresqlを組み込みサポートしています。 postgres hstore/json/配列、 sqliteフルテキスト検索、 スキーママイグレーション など多数の拡張機能が利用可能です。 GitHub でホストされているPeeweeのソースコード。 peeweeは初めてですか?始めるにあたって最も役立つドキュメントのリストは次のとおりです。 クイックスタートガイド – このガイドでは必需品をすべてカバーしています。それを通過するには5〜10分かかります。 さまざまなクエリ演

                          • peewee — peewee 3.17.5 documentation

                            peewee Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. a small, expressive ORM python 2.7+ and 3.4+ supports sqlite, mysql, mariadb, postgresql and cockroachdb tons of extensions Peewee’s source code hosted on GitHub. New to peewee? These may help: Quickstart Example twitter app Using peewee interactively Models and fields Quer

                            • peewee

                              Classifiers Development Status 5 - Production/Stable Intended Audience Developers License OSI Approved :: MIT License Operating System OS Independent Programming Language Python Python :: 2 Python :: 2.7 Python :: 3 Python :: 3.4 Python :: 3.5 Python :: 3.6 Python :: 3.7 Python :: 3.8 Python :: 3.9 Python :: 3.10 Python :: 3.11 Python :: 3.12 Topic Database Software Development :: Libraries :: Pyt

                                peewee
                              • peewee — peewee 3.17.3 documentation

                                peewee Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. a small, expressive ORM python 2.7+ and 3.4+ supports sqlite, mysql, mariadb, postgresql and cockroachdb tons of extensions Peewee’s source code hosted on GitHub. New to peewee? These may help: Quickstart Example twitter app Using peewee interactively Models and fields Quer

                                • Python + peeweeを使って、Heroku Postgresに接続する - メモ的な思考的な

                                  最近、新旧のHerokuアプリ間でデータを移行する機会がありました。 当初は単純にリストアすればいいかと考えましたが、新旧間でテーブル構造などを変えたことに気づきました。 また、一部のテーブルのみのリストアができなくなったみたいで、ローカルのPostgreSQLへリストア・列変換後にHerokuにリストアという方法も取りにくくなりました。 Heroku PGBackups | Heroku Dev Center そのため、直接Heroku Postgresに接続してデータ変換を行おうと考えました。良さそうなライブラリ(ORM)を探してみたところpeeweeがあったため、試してみました。 coleifer/peewee - GitHub 環境 Windows7 x64 Python 3.4.3 x86 virtualenvに以下をインストール peewee 2.6.3 psygopg2 (w

                                    Python + peeweeを使って、Heroku Postgresに接続する - メモ的な思考的な
                                  • Peewee Cookbook — peewee 2.1.4 documentation

                                    Peewee Cookbook¶ Below are outlined some of the ways to perform typical database-related tasks with peewee. Examples will use the following models: from peewee import * class User(Model): username = CharField() class Tweet(Model): user = ForeignKeyField(User, related_name='tweets') message = TextField() created_date = DateTimeField(default=datetime.datetime.now) is_published = BooleanField(default

                                    • PEEWEE 【TEMPLATE利用規約】

                                      Template HTML 4.01 Transitional(標準準拠)とCSSで作成してます。 [動作確認] windows11 | 1024x768 | Microsoft Edge  Google Chrome [ノーフレームのカテゴリー] 各カテゴリーでCSSとimgフォルダをアップするだけでデザインの変更が可能です。 ただし各テンプレートによってお借りしている素材が異なります。 素材の入れ替えの際は必ず著作権の変更・削除をお願いします。 NOFRAME003のみ単独使用となります。 禁止事項 画像・HTML・CSS等への直リンク・再配布 著作権の削除(移動はOK) お借りしている素材の他での使用・加工・再配布・著作権削除 HP制作代行業者・実写アダルトサイト・違法サイト・宗教での使用 その他 カスタマイズに制限はありませんが、カスタマイズに関してのサポートは行っておりません。

                                      • PEEWEE 【TEMPLATE】

                                        【NOFRAME001】 #n001 Download #n002 Download #n003 Download #n004 Download #n005 Download #n006 Download #n007 Download #n008 Download #n009 修正中 #n010 Download #n011 Download #n012 Download #n013 Download

                                        • Python+Peewee ORM+SQLiteで1億レコード最速insertチャレンジ | さかな前線

                                          イワシの大群が特に大規模になったとき、それをサーディンランと呼び、個体数は数千万とも数億とも数十億ともいわれるのだそうです。そのような生物量がそれほど密集したとき酸素濃度は足りるんだろうかと心配です。 さて、データ処理の一環で億オーダーのレコード数(ディスク上で~100GB)をもつSQLiteテーブルを構築しようということになり、データ自体は生CSVがある状態でこれをなるべく短時間でDBに流し込むという雑なチャレンジをしてみたので、雑な記録をまとめておきました。 できるだけPythonで閉じさせたかったため、C++などで書くという選択肢はなし。 またDBサイズがサイズなのでインメモリではなくファイルに吐き出します。 またスキーマ定義をさくっとやりたい・DB構築後の扱いを楽にしたいということで、PythonベースのORM Peeweeを使用することにしています。なおPeeweeについて詳細は

                                          • ページの横幅が足りているのに横スクロールバーがでてしまいます。---http://corcor.info/peewee/t... - Yahoo!知恵袋

                                            ページの横幅が足りているのに横スクロールバーがでてしまいます。 --- http://corcor.info/peewee/temp002.php このページの#f003というテンプレートを借りてサイトを作っています。 ページの横幅が足りているのに横スクロールバーがでてしまいます。 --- http://corcor.info/peewee/temp002.php このページの#f003というテンプレートを借りてサイトを作っています。 トップページに画像を挿入したいのですが、 <img src="sample.jpg"> と1つだけ画像を挿入した場合はうまくいきます。しかし <img src="sample.jpg"><br> <img src="sample.jpg"> などと2つ以上挿入させようとすると、横幅は足りているのに横スクロールバーが出てしまいます。 色々調べてみましたが、どう

                                              ページの横幅が足りているのに横スクロールバーがでてしまいます。---http://corcor.info/peewee/t... - Yahoo!知恵袋
                                            • charles leifer | Integrating the flask microframework with the peewee ORM

                                              Integrating the flask microframework with the peewee ORM September 27, 2011 10:52 / django flask peewee python / 5 comments I'd like to write a post about a project I've been working on for the past month or so. I've had a great time working on it and am excited to start putting it to use. The project is called flask-peewee -- it is a set of utilities that bridges the python microframework flask a

                                              • GitHub - biosustain/potion: Flask-Potion is a RESTful API framework for Flask and SQLAlchemy, Peewee or MongoEngine

                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                  GitHub - biosustain/potion: Flask-Potion is a RESTful API framework for Flask and SQLAlchemy, Peewee or MongoEngine
                                                • loving PEEWEE

                                                  loving PEEWEEからのお知らせです。 10年に以上使ってきたロリポブログですが、メディアの進化に伴ってだんだんと使いにくくなりました。 スマホでの閲覧では、ものすごくダサいページになっていて、自分でもスマホで見るのが嫌なくらいだったのです(汗) お仕事用のHPはワードプレスで作っています。 色んなプラグインがあったりで、更新するのも楽しいのです。 そんなこんなでPEEWEEもワードプレスに変えようと思い立ちました。 しかし過去記事も引っ越ししようとすると、画像サイズの横幅を400PXで設定していたことによって、新ブログでは画像が小さくてビジュアルが美しくありません。 画像はすべてオリジナルで保管していますが、2000枚近くのブログの画像を一枚ずつサイズアップするのは時間の無駄と判断しました。 いままでは一眼レフで撮った画像をUPしています。 新しいブログではiPhoneカメラがメ

                                                    loving PEEWEE
                                                  • API Documentation — peewee 3.17.3 documentation

                                                    API Documentation This document specifies Peewee’s APIs. Database class Database(database[, thread_safe=True[, field_types=None[, operations=None[, autoconnect=True[, **kwargs]]]]]) Parameters database (str) – Database name or filename for SQLite (or None to defer initialization, in which case you must call Database.init(), specifying the database name). thread_safe (bool) – Whether to store co

                                                    • Understanding PeeWee's related_name property

                                                      I'm really enjoying the Peewee ORM. It's lightweight, easy to use, and pretty well documented. One thing I'm having trouble grasping is the related_name property used when implementing foreign keys. I'm never sure whether the property should relate to the table, or to the column. Could someone explain to me exactly what I should be using the name for, and how? For example, with the Student/Courses

                                                        Understanding PeeWee's related_name property
                                                      • PythonのORM Peeweeの日本語ドキュメント — peewee 2.8.1 ドキュメント

                                                        PythonのORM Peeweeの日本語ドキュメント ¶ Peeweeはシンプルで小さなORMです。それは表現力が豊かですが概念はほとんどなく、学びやすく直感的に使うことができます。 小さく表現力のあるORM Pythonで書かれ、バージョン2.6+および3.2+をサポートしています。 sqlite、mysql、postgresqlを組み込みサポートしています。 postgres hstore/json/配列 、 sqliteフルテキスト検索 、 スキーママイグレーション など多数の拡張機能が利用可能です。 GitHub でホストされているPeeweeのソースコード。 peeweeは初めてですか?始めるにあたって最も役立つドキュメントのリストは次のとおりです。 クイックスタートガイド – このガイドでは必需品をすべてカバーしています。それを通過するには5〜10分かかります。 さまざまなク

                                                        • ライブラリ: peewee

                                                          peewee は Python でデータベースを扱いやすくする「 OR マッパ」ライブラリです。 デフォルトでは PosgreSQL 、 MySQL 、 SQLite の 3 つに対応しています。 以下 peewee の基本的な使い方を見ていきます。 データベースへの接続 データベースへの接続は Database クラスのインスタンスを使って行います。 SQLite の場合は次のようになります。 # データベースに接続する db = SqliteDatabase('db.sqlite') db.connect() # さまざまな処理... # データベース接続を閉じる db.close() # データベース指定のための設定を格納したベースモデル class BaseModel(Model): class Meta: database = db # モデル Person # person テ

                                                            ライブラリ: peewee
                                                          • 〓loving PEEWEE | オーラの見方教えます〓

                                                            オーラって何のことかご存知ですか? 超能力者でしか見ることかできないと思っていませんか? オーラは簡単にいうと人間の体から出ている光のことですが, それは誰にだって見ることができます。 ただオーラを見やすいタイプはあるようですが・・・それは 1.ぼーっとしてる人 2.単純な人 です。 どうでした? あなたはこんなタイプでしたか? これは冗談のようでほんとのことです。(笑) 先ずは, オーラを見る練習の前に “光”についてちょっとお話しましょう。 私たちが見ることができる光を可視光線といいます。 小学校の理科の授業で学んだと思いますが、無色透明の太陽光をプリズムで分光した。 7色の光の帯(スペクトル)のことを覚えていらっしゃいますか? (可視光線) (赤外線) ← 赤 橙 黄色 黄緑 緑 青緑 青 紫 → (紫外線) これは分光器(

                                                            • 手作り手帳 | loving PEEWEE

                                                              loving PEEWEE手帳を作りました。 毎年ほぼ日手帳を購入していましたが、一日1Pの手帳は、プライベート時にマルシェカゴバックで持ち歩くのには重いと感じたからです。お店を色々見てまわりましたが、家計簿と同じように、帯に短し襷に長しといった感じでピッタリとくるものを見つけられませんでした。じゃ作ちゃおう!と思い立ったわけです。 <lovingPEEWEE手帳の特徴> ①1W1P(1週間のスケジュールが1Pで見れます。週間のみになります(月間管理は携帯でしています) ②時間の管理が早朝・午前・昼下がり・夕〜夜におおらかに分かれています。 時間表示は朝5時〜夜10時になっています。朝日と共に起き、夕陽を合図に一日を終える支度をする為のものです。早寝早起きは大変自然でエコな生活になります。★早起きのコツは早寝あるのみです(汗) ③この手帳には1週間の終わりに儀式があります。それは右下のミシ

                                                                手作り手帳 | loving PEEWEE
                                                              • 【Python】peeweeで既存のデータベース(MySQL)からモデルを自動生成する方法 - あずみ.net

                                                                【Python】peeweeで既存のデータベース(MySQL)からモデルを自動生成する方法です。 以下のコマンドを実行して下さい。 python -m pwiz -e mysql -H 127.0.0.1 -u username -P dbname > models.py

                                                                  【Python】peeweeで既存のデータベース(MySQL)からモデルを自動生成する方法 - あずみ.net
                                                                • flask-peewee — flask-peewee 0.6.7 documentation

                                                                  Warning I’m sorry to announce that flask-peewee will now be in maintenance-only mode. This decision is motivated by a number of factors: Flask-Admin provides a superior admin interface and has support for peewee models. Flask-Security and Flask-Login both provide authentication functionality, and work well with Peewee. Most importantly, though, I do not find myself wanting to work on flask-peewee.

                                                                  • charles leifer | Using advanced database features with Peewee, a python ORM

                                                                    I've developed an interest in some of the more advanced features of SQLite 3.7 after reading the O'Reilly title Using SQLite (Small. Fast. Reliable. Choose Any Three). For personal projects I like using SQLite for prototyping or for simple applications, and when I need something more powerful I turn to Postgresql. Because peewee supports both of these databases (as well as MySQL), it is limited to

                                                                    • peeweeで全文検索を行った話(MySQL) - Qiita

                                                                      Peeweeとは peeweeはPython用のORMです。 扱えるデータベースが豊富で利点も多いですがなにぶん公式ドキュメント以外の参考資料が少ない印象です 参考資料 PythonのORMのPeeweeを使ってデータベースを操作してみる(2019年8月版) 公式ドキュメント Peeweeで全文検索をやってみたい 現在関わっているプロジェクトであいまい検索を行いたいとの話が出てきた為、peeweeの資料を読み漁って やり方を探してみましたが、いまいちわかりずらいです。 その為、googleで探してみたところ以下のブランチが見つかりました。 https://github.com/coleifer/peewee/issues/1955 環境 peewee:3.14.2 python3.8 参考ブランチを元に全文検索を行ってみる 全文検索を行うにはまず既存のDBのテーブル変更を行う必要がありそう

                                                                        peeweeで全文検索を行った話(MySQL) - Qiita
                                                                      • 【Python】peeweeでデータを10件取得する方法 - あずみ.net

                                                                        【Python】peeweeでデータを10件取得する方法。 LIMITを使ってpeeweeで10件のデータを取得してみます。 サンプルコードは以下の通りです。 from peewee import * import Posts for post in Posts.select().limit(10): print(post)

                                                                          【Python】peeweeでデータを10件取得する方法 - あずみ.net
                                                                        • 【楽天市場】トゥミ TUMI アルファ ブラボーランス・バックパック 0232659D / 130571-1041 ALPHA BRAVO ブラック リュック バッグ ファッション:PEEWEE BABY

                                                                          【ランス・バックパック】 カジュアルになりすぎないスタイリッシュなバックパック。様々なファッションに合わせられ、シーンを選ばずお使いいただけます。 ポケットが多数付いているほか、ロールトップタイプなので荷物が多くてもすっきりと収められます。パッド付きの収納スペースはPCやタブレットを入れて持ち運ぶのに最適。 また、トップ部分を開けなくても背面からメインルームへ荷物の出し入れができるなど実用性が考慮された一点です。 パッド入りのバックパックストラップで肩への負担を軽減するので、出張の際など長い時間持っていても快適です。 <商品仕様> 外側: トップのレザーグリップ付きキャリーハンドル ファスナー式開閉 フロントのU字型ファスナーポケット×2 (片方には防水加工がされています。) フロントのファスナーポケット パッド入りバックパックストラップ サイドポケット アド・ア・バッグ・スリーブ IDタ

                                                                            【楽天市場】トゥミ TUMI アルファ ブラボーランス・バックパック 0232659D / 130571-1041 ALPHA BRAVO ブラック リュック バッグ ファッション:PEEWEE BABY
                                                                          • Pythonのシンプルで小さな ORM「peewee」のインストール

                                                                            Pythonのシンプルで小さなオブジェクト関係マッピング(ORM)「peewee」のインストールについて解説しています。 「peewee(https://github.com/coleifer/peewee/)」は、シンプルで小さなORMで、sqlite,mysql,postgresql,cockroachdbをサポートしています。 ■Python 今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認) ■peeweeをインストールするpeeweeをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。 pip install peewee起動後、上記のコマンドを入力し、Enterキーを押します。 なお、今回は、pythonランチャーを使用しており、Py

                                                                              Pythonのシンプルで小さな ORM「peewee」のインストール
                                                                            • Python】peeweeでError 2006: MySQL server has gone awayとなったときに再接続させる方法 - あずみ.net

                                                                              Python】peeweeでError 2006: MySQL server has gone awayとなったときに再接続させる方法です。 サンプルコードは以下の通りです。

                                                                                Python】peeweeでError 2006: MySQL server has gone awayとなったときに再接続させる方法 - あずみ.net
                                                                              • PEEWEE 【APESKIN】

                                                                                BBS/GUESTBOOK #bbs01 | SAMPLE | Download レスなし掲示板 #bbs02 | SAMPLE | Download レスあり掲示板 コメントは管理人のみ観覧 #bbs03 | SAMPLE | Download マルチレス掲示板 削除機能 #bbs04 | SAMPLE | Download レスなし掲示板 書き込み画面収納式 #bbs05 | SAMPLE | Download マルチレス掲示板 #bbs06 | SAMPLE | Download マルチレス掲示板 コメント別表示 削除機能 #bbs07 | SAMPLE | Download レスなし掲示板 削除機能 #bbs08 | SAMPLE | Download レスなし掲示板 削除機能 書き込み画面収納式 DIARY #diary01 | SAMPLE | Download 日記 書き込み

                                                                                • 【エラー対処】peeweeでpeewee.IntegrityError 1451が発生する - Qiita

                                                                                  はじめに pythonのORMマッパーであるpeeweeでUserテーブルの行を削除するAPIを書いたところ以下のようなエラーが発生しました. peewee.IntegrityError: (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`atnow_database`.`task`, CONSTRAINT `task_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`))') import peewee from code.models.base import Base class User(Base): username = peewee.CharField(unique=True, index=True) is_act

                                                                                    【エラー対処】peeweeでpeewee.IntegrityError 1451が発生する - Qiita