Commit 8862addd authored by Willard's avatar Willard

Fix imports in files

parent 8401a6ed
import os.path import os.path
from flask import Flask, request from flask import Flask
from flask_sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate from flask_migrate import Migrate
from flask_login import LoginManager from flask_login import LoginManager
......
from flask import flash from flask import flash
from flask_wtf import FlaskForm 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 wtforms.validators import DataRequired, EqualTo, Email
from models import Owner, Stall, Dish from models import Owner, Stall, Dish
from werkzeug.security import generate_password_hash, check_password_hash
class OwnerLoginForm(FlaskForm): class OwnerLoginForm(FlaskForm):
username = StringField('Username', [DataRequired()]) username = StringField('Username', [DataRequired()])
......
from canteeneo import db from canteeneo import db
from werkzeug.security import generate_password_hash, check_password_hash from werkzeug.security import generate_password_hash, check_password_hash
import hashlib
dish_favorites = db.Table('dish_favorites', dish_favorites = db.Table('dish_favorites',
db.Column('dish_id', db.Integer, db.ForeignKey('dish.id')), db.Column('dish_id', db.Integer, db.ForeignKey('dish.id')),
......
import os.path import os.path
from canteeneo import app, login_manager, db 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 flask_login import login_required, login_user, logout_user, current_user
from forms import OwnerLoginForm, OwnerRegisterForm, StallRegisterForm, DishRegisterForm from forms import OwnerLoginForm, OwnerRegisterForm, StallRegisterForm, DishRegisterForm
from models import Owner, Stall, Location, Dish from models import Owner, Stall, Location, Dish
from werkzeug.utils import secure_filename from werkzeug.utils import secure_filename
from datetime import datetime
@app.route('/') @app.route('/')
def index(): def index():
......
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