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
7b78e962
Commit
7b78e962
authored
Jan 27, 2022
by
Masarath Fatima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete sample.py
parent
f107d111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
sample.py
flaskdatabasemigrations/flaskdatabasemigrations/sample.py
+0
-27
No files found.
flaskdatabasemigrations/flaskdatabasemigrations/sample.py
deleted
100644 → 0
View file @
f107d111
from
flask
import
Flask
,
flash
,
redirect
,
render_template
,
request
,
url_for
from
wtforms
import
Form
,
SelectField
from
onpremisesdatabases
import
sqlserver1
,
postgres1
,
mysql1
from
registrationform
import
RegistrationForm
app
=
Flask
(
__name__
)
app
.
secret_key
=
"MY_SECRET_KEY"
@
app
.
route
(
'/'
,
methods
=
[
'GET'
,
'POST'
])
def
register
():
form
=
RegistrationForm
(
request
.
form
)
if
request
.
method
==
'POST'
and
form
.
validate
():
if
form
.
db_name
==
"My SQl"
:
return
mysql1
elif
form
.
db_name
==
"Postgres"
:
return
postgres1
elif
form
.
db_name
==
"SQL Server"
:
return
sqlserver1
flash
(
'Thanks for registering'
)
return
redirect
(
url_for
(
'thankyou'
))
return
render_template
(
'db.html'
,
form
=
form
)
if
__name__
==
"__main__"
:
app
.
run
(
debug
=
True
,
port
=
1234
)
\ 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