-
Notifications
You must be signed in to change notification settings - Fork 0
Flask App Builder Integration
valhuber edited this page Sep 27, 2020
·
1 revision
Alter your nw_app/app/__init__.py:
appbuilder = AppBuilder(app, db.session)
if use_rules: # insert this....
rule_bank_setup.setup(db.session, db.engine)
activate_basic_check_credit_rules()
rule_bank_setup.validate(db.session, db.engine) # checks for cycles, etc
Activate Rules
The code above requires several imports.
Depending on your project structure,
you may need to update Python's search
path. This was, in fact, required here,
with code like:
```python
sys.path.append(required_path_python_rules)
```
Fix Search Path
Finally, configure logging:
Configure Logging
Technology
Explore Implementation