messing stuff up
This commit is contained in:
@ -79,14 +79,14 @@ def create_app():
|
||||
except Exception as e:
|
||||
print(f"[⚠️] Failed to load CLI for plugin '{plugin}': {e}")
|
||||
|
||||
# 3. Auto-load plugin models for migrations
|
||||
if os.path.isfile(model_file):
|
||||
try:
|
||||
spec = importlib.util.spec_from_file_location(f"plugins.{plugin}.models", model_file)
|
||||
mod = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(mod)
|
||||
except Exception as e:
|
||||
print(f"[⚠️] Failed to load models from plugin '{plugin}': {e}")
|
||||
## 3. Auto-load plugin models for migrations
|
||||
#if os.path.isfile(model_file):
|
||||
# try:
|
||||
# spec = importlib.util.spec_from_file_location(f"plugins.{plugin}.models", model_file)
|
||||
# mod = importlib.util.module_from_spec(spec)
|
||||
# spec.loader.exec_module(mod)
|
||||
# except Exception as e:
|
||||
# print(f"[⚠️] Failed to load models from plugin '{plugin}': {e}")
|
||||
|
||||
@app.context_processor
|
||||
def inject_current_year():
|
||||
|
@ -6,7 +6,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>400 – Bad Request</h1>
|
||||
<p>{{ e.description or "Sorry, we couldn’t understand that request." }}</p>
|
||||
<p>{{ error.description or "Sorry, we couldn’t understand that request." }}</p>
|
||||
<a href="{{ url_for('main.index') }}">Return home</a>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user