diff --git a/auction/__init__.py b/auction/__init__.py index a16a04c..91fbabf 100644 --- a/auction/__init__.py +++ b/auction/__init__.py @@ -36,5 +36,5 @@ def app(): # creates and initialises a flask app def create_db(app): # checks if the database exists already, creating it if not - #if not path.exists("auction/" + DB_NAME): # determines if database.db is a path in the directory - db.create_all(app=app) # creates the database \ No newline at end of file + if not path.exists("auction/" + DB_NAME): # determines if database.db is a path in the directory + db.create_all(app=app) # creates the database \ No newline at end of file diff --git a/auction/database.db b/auction/database.db index d2f376c..aded12b 100644 Binary files a/auction/database.db and b/auction/database.db differ diff --git a/auction/static/images/2.jpg b/auction/static/images/2.jpg index bb0a51e..db38c8d 100644 Binary files a/auction/static/images/2.jpg and b/auction/static/images/2.jpg differ diff --git a/auction/static/images/3.jpg b/auction/static/images/3.jpg index 3f350e0..bb0a51e 100644 Binary files a/auction/static/images/3.jpg and b/auction/static/images/3.jpg differ diff --git a/commands.txt b/commands.txt index ad6eb8a..773e612 100644 --- a/commands.txt +++ b/commands.txt @@ -1,2 +1,12 @@ +install modules using pip3 if necessary + +in the terminal: . venv/bin/activate -FLASK_APP=main.py FLASK_ENV=development flask run --host=0.0.0.0 \ No newline at end of file +export FLASK_APP=main.py +flask run --host=0.0.0.0 + +go to: +https://mars-fortune-5000.codio-box.uk/ + +seller1@gmail.com, p455w0rd +seller2@gmail.com, p455w0rd \ No newline at end of file