Moves files around

This commit is contained in:
Patrick McDonagh
2016-12-06 17:13:15 -06:00
parent b0b964c45a
commit cf49309391
6 changed files with 5 additions and 2 deletions

View File

@@ -9,11 +9,11 @@ from flask_sqlalchemy import SQLAlchemy
UPLOAD_FOLDER = os.path.join(os.getcwd(), 'app', 'docs')
app = Flask('app', static_url_path='')
app = Flask('app', static_url_path='', static_folder="hp_webserver/static")
app.config.update(
DEBUG=True,
# SQLALCHEMY_DATABASE_URI='mysql+mysqlconnector://website:henrypump@127.0.0.1/poconsole'
SQLALCHEMY_DATABASE_URI='sqlite:///../database.db',
SQLALCHEMY_DATABASE_URI='sqlite:///./database.db',
)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024

1
hp_webserver/__main__.py Normal file
View File

@@ -0,0 +1 @@
print("MAIN IN hp_datalogger")

View File

@@ -0,0 +1 @@
print("THIS IS THE MAIN FROM datalogger")

View File

@@ -52,6 +52,7 @@ def tagsattime_to_obj(tup):
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def catch_all(path):
print("caught something!")
return app.send_static_file('index.html')