質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,6 +32,18 @@
|
|
32
32
|
default=datetime.now(pytz.timezone('Asia/Tokyo')))
|
33
33
|
kinds = db.Column(db.String(10), nullable=False)
|
34
34
|
invest = db.Column(db.Integer, nullable=False)
|
35
|
-
return_ = db.Column(db.Integer, unique=True)
|
35
|
+
return_ = db.Column(db.Integer, unique=True)
|
36
|
+
```
|
37
|
+
ターミナル での実行画面が以下のようになります。
|
38
|
+
```ここに言語を入力
|
39
|
+
(flask) ishi-no-MacBook-Pro:flask2 tom$ python
|
40
|
+
Python 3.6.13 |Anaconda, Inc.| (default, Feb 23 2021, 12:58:59)
|
41
|
+
[GCC Clang 10.0.0 ] on darwin
|
42
|
+
Type "help", "copyright", "credits" or "license" for more information.
|
43
|
+
>>> from app import db
|
44
|
+
/opt/anaconda3/envs/flask/lib/python3.6/site-packages/flask_sqlalchemy/__init__.py:873: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.
|
45
|
+
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
|
46
|
+
>>> db.create_all()
|
47
|
+
>>>
|
48
|
+
```
|
36
49
|
|
37
|
-
|