質問編集履歴

1

2022/02/23 15:29

投稿

donvi
donvi

スコア10

test CHANGED
File without changes
test CHANGED
@@ -154,8 +154,31 @@
154
154
  db.session.commit()
155
155
  return redirect(url_for('crud.users'))
156
156
  ```
157
+ ```__init__.py
158
+ import apps.crud.models
159
+ ```
157
160
  # 試したこと
158
161
  書籍を参考にしているので、スペルミス等のチェック
159
162
  他にも、ググっては見たものの、分かりませんでした。
160
163
  デコレータの読み込みタイミングがおかしいのかもと考えたのですが
161
164
  結局わかりませんでした。
165
+
166
+ # ファイルとディレクトリ
167
+ app_flask
168
+ |-apps
169
+ _|-auth
170
+ _|-crud
171
+ __ |-static
172
+ __ |-templates
173
+ __ |-__init__.py
174
+ __ |-forms.py
175
+ __ |-models.py
176
+ __ |-views.py
177
+ _|-migrations
178
+ _|-minimalapp
179
+ _|-app.py
180
+ _|-config.py
181
+ |-migrations
182
+ |-local.sqlite
183
+ |-run.py
184
+