|
@@ -3,8 +3,9 @@ from login import * # import the login helper file
|
|
import helper, json, time # Import the helper file and other modules
|
|
import helper, json, time # Import the helper file and other modules
|
|
app = Flask(__name__) # Create the app
|
|
app = Flask(__name__) # Create the app
|
|
db = helper.createDb(app) # Get the database
|
|
db = helper.createDb(app) # Get the database
|
|
-User, Topic, Reply, db = db['User'], db['Topic'], db['Reply'], db['db'] # Get the classes
|
|
|
|
-createLoginManager(app, User) # Create and init the login manager (login helper file)
|
|
|
|
|
|
+Topic, Reply, db = db['Topic'], db['Reply'], db['db'] # Get the classes
|
|
|
|
+User = initLogin(app, db) # Create and init the login manager (login helper file)
|
|
|
|
+db.create_all()
|
|
def getTime(): return time.asctime( time.localtime(time.time()) ) # Get the current time and date
|
|
def getTime(): return time.asctime( time.localtime(time.time()) ) # Get the current time and date
|
|
|
|
|
|
@app.route('/login') # Render the login page, nothing more
|
|
@app.route('/login') # Render the login page, nothing more
|