Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LabelsTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MaitresNageurs
README
LabelsTower
Commits
05eb97a3
Commit
05eb97a3
authored
4 years ago
by
erichard
Browse files
Options
Downloads
Patches
Plain Diff
Allow Cross Origin Request Secure (CORS)
parent
b18e49b9
No related branches found
No related tags found
1 merge request
!61
Packager labelstower
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/__init__.py
+2
-0
2 additions, 0 deletions
app/__init__.py
docker/requirements.txt
+1
-0
1 addition, 0 deletions
docker/requirements.txt
with
3 additions
and
0 deletions
app/__init__.py
+
2
−
0
View file @
05eb97a3
import
os
import
os
from
flask
import
Flask
,
render_template
from
flask
import
Flask
,
render_template
from
flask_sqlalchemy
import
SQLAlchemy
from
flask_sqlalchemy
import
SQLAlchemy
from
flask_cors
import
CORS
db
=
SQLAlchemy
()
db
=
SQLAlchemy
()
...
@@ -19,6 +20,7 @@ def create_app():
...
@@ -19,6 +20,7 @@ def create_app():
"
Label
"
:
"
Label(s)
"
"
Label
"
:
"
Label(s)
"
}
}
app
=
CustomFlask
(
__name__
)
app
=
CustomFlask
(
__name__
)
CORS
(
app
)
db
.
init_app
(
app
)
db
.
init_app
(
app
)
app
.
config
.
from_object
(
os
.
environ
[
'
LABELSTOWER_ENV
'
])
app
.
config
.
from_object
(
os
.
environ
[
'
LABELSTOWER_ENV
'
])
...
...
This diff is collapsed.
Click to expand it.
docker/requirements.txt
+
1
−
0
View file @
05eb97a3
...
@@ -15,3 +15,4 @@ six==1.12.0
...
@@ -15,3 +15,4 @@ six==1.12.0
SQLAlchemy==1.3.13
SQLAlchemy==1.3.13
Werkzeug==0.16.0
Werkzeug==0.16.0
WTForms==2.2.1
WTForms==2.2.1
Flask-Cors==3.0.8
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment