Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cm1102-AlphaMart
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
Ricardo Garcia
cm1102-AlphaMart
Commits
89a2ce98
Commit
89a2ce98
authored
1 year ago
by
Ricy40
Browse files
Options
Downloads
Patches
Plain Diff
openshift main
parent
c1c52ba9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
requirements.txt
+6
-0
6 additions, 0 deletions
requirements.txt
store/__init__.py
+3
-2
3 additions, 2 deletions
store/__init__.py
wsgi.py
+1
-0
1 addition, 0 deletions
wsgi.py
with
10 additions
and
2 deletions
requirements.txt
0 → 100644
+
6
−
0
View file @
89a2ce98
Flask
Flask-Cors
Flask-Login
Flask-SQLAlchemy
Jinja2
gunicorn
This diff is collapsed.
Click to expand it.
store/__init__.py
+
3
−
2
View file @
89a2ce98
from
flask
import
Flask
from
flask_sqlalchemy
import
SQLAlchemy
from
os
import
path
import
os
from
flask_login
import
LoginManager
from
flask_cors
import
CORS
db
=
SQLAlchemy
()
AM_DB
=
"
database.db
"
AM_DB
=
"
alphamart
"
def
create_app
():
app
=
Flask
(
__name__
)
app
.
config
[
'
SECRET_KEY
'
]
=
'
AhAhAhAhAhAlphaMartYouReallyHaveNoIdeaWhatsInStoreForYou
'
app
.
config
[
'
SQLALCHEMY_DATABASE_URI
'
]
=
f
'
sql
ite:///
{
AM_DB
}
'
app
.
config
[
'
SQLALCHEMY_DATABASE_URI
'
]
=
f
'
my
sql
+pymysql://
{
os
.
environ
[
"
MYSQL
"
]
}
@csmysql.cs.cf.ac.uk:3306/c22003197_
{
AM_DB
}
'
db
.
init_app
(
app
)
from
.views
import
views
...
...
This diff is collapsed.
Click to expand it.
wsgi.py
0 → 100644
+
1
−
0
View file @
89a2ce98
from
AlphaMart
import
app
as
application
\ No newline at end of file
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