Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔为之
elp
Commits
a7600c8b
Commit
a7600c8b
authored
Nov 04, 2023
by
崔为之
💪🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project
parent
bfd6c985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
app.py
app.py
+16
-2
No files found.
app.py
View file @
a7600c8b
...
...
@@ -12,8 +12,22 @@
from
application
import
create_app
app
=
create_app
()
def
runserver
():
"""
This function creates a new instance of the Flask application and runs it.
"""
# Create a new instance of the Flask application
app
=
create_app
()
# Run the Flask development server
# The run() method starts the application's development server.
# It's not meant to be used on production environment.
app
.
run
(
debug
=
True
)
if
__name__
==
"__main__"
:
app
.
run
()
# Only run the development server if the script is executed directly.
# This allows other scripts to import this file without starting the server.
runserver
()
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