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
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
__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
run.py
run.py
+1
-1
No files found.
canteeneo/__init__.py
View file @
8862addd
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
...
@@ -19,4 +19,4 @@ migrate = Migrate(app, db)
...
@@ -19,4 +19,4 @@ migrate = Migrate(app, db)
import
models
import
models
import
views
import
views
import
api
import
api
\ No newline at end of file
canteeneo/forms.py
View file @
8862addd
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
()])
...
...
canteeneo/models.py
View file @
8862addd
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'
)),
...
...
canteeneo/views.py
View file @
8862addd
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
():
...
...
run.py
View file @
8862addd
from
canteeneo
import
app
from
canteeneo
import
app
\ No newline at end of file
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