#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os

from flask import Flask, render_template
from pymongo import MongoClient
from flask_mail import Mail

#Instaciando objeto Flask
app = Flask(__name__)


@app.route("/")
def index_page():
	return render_template("landing.html")

app.config.update(
        DEBUG=True,
        #EMAIL SETTINGS
        MAIL_SERVER='smtp.gmail.com',
        MAIL_PORT=465,
        MAIL_USE_SSL=True,
        MAIL_USERNAME = '<EMAIL>',
        MAIL_PASSWORD = <PASSWORD>'
        )

mail=Mail(app)

#Instaciando objeto MongoClient
client = MongoClient('mongodb://localhost:27017/')
#Criando instância do BD 'quizdb'
db = client.quizdb

#Configurações da aplicação
app.config["SECRET_KEY"] = "SECRET_KEY"

#Importando rotas da aplicação
from classroom.controllers import routes
from classroom.controllers import UserController
from classroom.controllers import ClassController
from classroom.controllers import TaskController
from classroom.controllers import TestController
from classroom.controllers import AnswerController
from classroom.controllers import CourseController
from classroom.controllers import QuestionController
from classroom.controllers import TopicController
from classroom.controllers import WarningController
from classroom.controllers.api import Tests


#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os

from flask import Flask, render_template
from pymongo import MongoClient
from flask_mail import Mail

#Instaciando objeto Flask
app = Flask(__name__)


@app.route("/")
def index_page():
	return render_template("landing.html")

app.config.update(
        DEBUG=True,
        #EMAIL SETTINGS
        MAIL_SERVER='smtp.gmail.com',
        MAIL_PORT=465,
        MAIL_USE_SSL=True,
        MAIL_USERNAME = '<EMAIL>',
        MAIL_PASSWORD = <PASSWORD>'
        )

mail=Mail(app)

#Instaciando objeto MongoClient
client = MongoClient('mongodb://localhost:27017/')
#Criando instância do BD 'quizdb'
db = client.quizdb

#Configurações da aplicação
app.config["SECRET_KEY"] = "SECRET_KEY"

#Importando rotas da aplicação
from classroom.controllers import routes
from classroom.controllers import UserController
from classroom.controllers import ClassController
from classroom.controllers import TaskController
from classroom.controllers import TestController
from classroom.controllers import AnswerController
from classroom.controllers import CourseController
from classroom.controllers import QuestionController
from classroom.controllers import TopicController
from classroom.controllers import WarningController
from classroom.controllers.api import Tests


#!/usr/bin/env python # -*- coding: utf-8 -*- #Instaciando objeto Flask #EMAIL SETTINGS #Instaciando objeto MongoClient #Criando instância do BD 'quizdb' #Configurações da aplicação #Importando rotas da aplicação