FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
examples-python/run.py at master · cbcqa-python-large-repo/examples-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cbcqa-python-large-repo
/
examples-python
Public
forked from
blackduck-python-pip/examples-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
examples-python
/
run.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
18 lines (16 loc) · 513 Bytes
Breadcrumbs
examples-python
/
run.py
Copy path
File metadata and controls
executable file
·
18 lines (16 loc) · 513 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!flask/bin/python
from
app
import
app
from
flask_session
import
Session
import
os
if
os
.
environ
.
get
(
"DEBUG"
,
False
)
==
"True"
:
app
.
config
[
"DEBUG"
]
=
True
app
.
config
[
'SESSION_TYPE'
]
=
'filesystem'
sess
=
Session
()
sess
.
init_app
(
app
)
port
=
int
(
os
.
environ
.
get
(
"PORT"
,
3000
))
app
.
run
(
host
=
"localhost"
,
port
=
3000
,
debug
=
True
)
else
:
app
.
config
[
'SESSION_TYPE'
]
=
'filesystem'
sess
=
Session
()
sess
.
init_app
(
app
)
app
.
run
(
host
=
"localhost"
,
port
=
3000
,
extra_files
=
"api_type.py"
)
Back
|
FazBrowse Home
|
New Git URL