[Flask] Simple ERP for a farm.
1
# -*- mode: python; -*-
2
3
4
from flask import Blueprint, render_template, request, redirect, flash
5
from flask_login import login_required
6
7
from ... import db
8
from ...models import Module, Product
9
from .forms import *
10
11
products = ("products",__name__)
12
13
14
@products.route("/modules/products")
15
@login_required
16
defview():
17
modules = Module..()
18
prods = Product..(..())
19
module = "products"
20
(f"Successfully accessed module {}.","info")
21
(f"Still fighting against styling in {}.","error")
22
return (
23
f"modules/{}.html",
24
modules=,
25
products=,
26
)
27