Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS123-Canteeneo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Willard Torres
CS123-Canteeneo
Commits
8862addd
Commit
8862addd
authored
Oct 23, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix imports in files
parent
8401a6ed
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
__init__.py
canteeneo/__init__.py
+2
-2
forms.py
canteeneo/forms.py
+6
-2
models.py
canteeneo/models.py
+0
-1
views.py
canteeneo/views.py
+5
-2
No files found.
canteeneo/__init__.py
View file @
8862addd
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
...
...
canteeneo/forms.py
View file @
8862addd
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
()])
...
...
canteeneo/models.py
View file @
8862addd
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'
)),
...
...
canteeneo/views.py
View file @
8862addd
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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment