Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Flask_databasemigration
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Masarath Fatima
Flask_databasemigration
Commits
f8234f02
Commit
f8234f02
authored
Jan 27, 2022
by
Masarath Fatima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete app.py
parent
44d2027b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
app.py
flaskdatabasemigrations/flaskdatabasemigrations/app/app.py
+0
-35
No files found.
flaskdatabasemigrations/flaskdatabasemigrations/app/app.py
deleted
100644 → 0
View file @
44d2027b
from
flask
import
Flask
,
flash
,
redirect
,
render_template
,
\
request
,
url_for
app
=
Flask
(
__name__
)
@
app
.
route
(
'/'
)
def
index
():
return
render_template
(
'index.html'
,
data
=
[{
'name'
:
'MY SQL'
},
{
'name'
:
'POSTGRES'
},
{
'name'
:
'SQL SERVER'
}])
@
app
.
route
(
"/test"
,
methods
=
[
'GET'
,
'POST'
])
def
test
():
select
=
request
.
form
.
get
(
'comp_select'
)
return
(
str
(
select
))
# just to see what select is
#
if
__name__
==
'__main__'
:
app
.
run
(
debug
=
True
)
#app.run(host='localhost', port=8800)
# @app.route()
# def getting_sql_data():
# if validate.forms:
# if vf== postgres:
# call your postgres.py file
# elif vf==mysql:
# call your mysql.py file
# elif vf==sqlserver:
# call your sqlserver.py file
#
#
#
from
flask
import
Flask
,
app
,
request
,
render_template
,
session
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