Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmt120-2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Felix Chadwick-Smith
cmt120-2
Commits
84319d8c
Commit
84319d8c
authored
1 year ago
by
Felix Chadwick-Smith
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'main'
changed wsgi.py See merge request
!10
parents
e9ef03dc
bc31823e
No related branches found
No related tags found
1 merge request
!10
changed wsgi.py
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.py
+0
-2
0 additions, 2 deletions
app.py
wsgi.py
+0
-5
0 additions, 5 deletions
wsgi.py
with
0 additions
and
7 deletions
app.py
+
0
−
2
View file @
84319d8c
import
os
import
secrets
from
flask
import
Flask
,
render_template
,
request
,
redirect
,
url_for
,
send_from_directory
,
abort
from
flask_sqlalchemy
import
SQLAlchemy
...
...
@@ -14,7 +13,6 @@ class Project(db.Model):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
)
title
=
db
.
Column
(
db
.
String
(
100
),
nullable
=
False
)
description
=
db
.
Column
(
db
.
Text
,
nullable
=
False
)
@app.route
(
'
/
'
)
def
home
():
try
:
...
...
This diff is collapsed.
Click to expand it.
wsgi.py
+
0
−
5
View file @
84319d8c
...
...
@@ -2,14 +2,9 @@ import os
from
app
import
app
as
application
from
markupsafe
import
Markup
# Make sure to import os
import
sys
import
logging
sys
.
modules
[
'
flask
'
].
Markup
=
Markup
logging
.
basicConfig
(
stream
=
sys
.
stderr
)
# Use if __name__ == '__main__': to run the Flask development server
if
__name__
==
'
__main__
'
:
application
.
run
(
host
=
'
0.0.0.0
'
,
port
=
int
(
os
.
environ
.
get
(
'
PORT
'
,
8080
)))
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