Commit 8862addd authored by Willard's avatar Willard

Fix imports in files

parent 8401a6ed
import os.path
from flask import Flask, request
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
......@@ -19,4 +19,4 @@ migrate = Migrate(app, db)
import models
import views
import api
\ No newline at end of file
import api
from flask import flash
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, TextField, TextAreaField, SelectField, DecimalField, FileField
from wtforms import DecimalField
from wtforms import FileField
from wtforms import PasswordField
from wtforms import SelectField
from wtforms import StringField
from wtforms import TextAreaField
from wtforms.validators import DataRequired, EqualTo, Email
from models import Owner, Stall, Dish
from werkzeug.security import generate_password_hash, check_password_hash
class OwnerLoginForm(FlaskForm):
username = StringField('Username', [DataRequired()])
......
from canteeneo import db
from werkzeug.security import generate_password_hash, check_password_hash
import hashlib
dish_favorites = db.Table('dish_favorites',
db.Column('dish_id', db.Integer, db.ForeignKey('dish.id')),
......
import os.path
from canteeneo import app, login_manager, db
from flask import render_template, flash, redirect, request, url_for, jsonify
from flask import flash
from flask import redirect
from flask import render_template
from flask import request
from flask import url_for
from flask_login import login_required, login_user, logout_user, current_user
from forms import OwnerLoginForm, OwnerRegisterForm, StallRegisterForm, DishRegisterForm
from models import Owner, Stall, Location, Dish
from werkzeug.utils import secure_filename
from datetime import datetime
@app.route('/')
def index():
......
from canteeneo import app
\ No newline at end of file
from canteeneo import app
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment