Moves files around
This commit is contained in:
@@ -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
1
hp_webserver/__main__.py
Normal file
@@ -0,0 +1 @@
|
||||
print("MAIN IN hp_datalogger")
|
||||
1
hp_webserver/datalogger/__main__.py
Normal file
1
hp_webserver/datalogger/__main__.py
Normal file
@@ -0,0 +1 @@
|
||||
print("THIS IS THE MAIN FROM datalogger")
|
||||
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user