[Flask] Simple ERP for a farm.
1
# -*- mode: python; -*-
2
3
4
from flask import (
5
Blueprint,
6
render_template,
7
send_file,
8
request,
9
redirect,
10
flash,
11
url_for,
12
jsonify,
13
abort,
14
)
15
from flask_login import login_required, current_user
16
import inspect
17
18
19
from ... import db
20
from ...models import *
21
from .forms import *
22
23
customers = ("customers",__name__)
24
25
26
@customers.route("/modules/customers")
27
@login_required
28
defview():
29
modules = Module..()
30
cust = Customer..(..())
31
module = "customers"
32
# flash(f"Successfully accessed module {module}.", "info")
33
# flash(f"Still fighting against styling in {module}.", "error")
34
return (
35
f"modules/{}.html",
36
modules=,
37
customers=,
38
)
39