<reponame>Enigmage/TNCM-Website
from flask import Flask, render_template, redirect, url_for,request,Response
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField,FileField
from wtforms.validators import InputRequired, Email, Length
from flask_sqlalchemy  import SQLAlchemy
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import LoginManager, UserMixin, login_user, login_required, logout_user, current_user
from config import Config
import os

app=Flask(__name__,static_url_path='/static')
app.config.from_object(Config) # Apply all configurations from config module.

@app.route("/")
def index():
    return render_template('index.html')

@app.route("/blogs")
def blog():
    #Query and return all blogs from database
    pass
@app.route("/forums")
def forums():
    #Query and return all forum threads from database
    pass
if __name__=="__main__":
    app.run(debug=True)

from flask import Flask, render_template, redirect, url_for,request,Response
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField,FileField
from wtforms.validators import InputRequired, Email, Length
from flask_sqlalchemy  import SQLAlchemy
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import LoginManager, UserMixin, login_user, login_required, logout_user, current_user
from config import Config
import os

app=Flask(__name__,static_url_path='/static')
app.config.from_object(Config) # Apply all configurations from config module.

@app.route("/")
def index():
    return render_template('index.html')

@app.route("/blogs")
def blog():
    #Query and return all blogs from database
    pass
@app.route("/forums")
def forums():
    #Query and return all forum threads from database
    pass
if __name__=="__main__":
    app.run(debug=True)
# Apply all configurations from config module. #Query and return all blogs from database #Query and return all forum threads from database