Add debug message
Generate release / build-and-publish (push) Successful in 46s Details

This commit is contained in:
Ventilaar 2024-02-28 23:16:23 +01:00
parent 7e4d872566
commit cb82a50dc4
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ from ayta.extensions import limiter, caching
from . import filters
def create_app():
def create_app(test_config=None):
config = {'MONGO_CONNECTION': os.environ.get('AYTA_MONGOCONNECTION', 'mongodb://root:example@192.168.66.140:27017'),
'S3_CONNECTION': os.environ.get('AYTA_S3CONNECTION', '192.168.66.111:9001'),
'S3_ACCESSKEY': os.environ.get('AYTA_S3ACCESSKEY', 'lnUiGClFVXVuZbsr'),
@ -42,4 +42,4 @@ def create_app():
app.add_url_rule("/", endpoint="base")
return app
return app

View File

@ -50,6 +50,7 @@
</div>
<div class="s6">
{% if 'username' in session %}<a href="{{ url_for('auth.logout') }}"><span class="new badge" data-badge-caption="{{ session.username }}">Logged in as</span></a>{% endif %}
{% if config.get('DEBUG') %}<span class="new badge" data-badge-caption="True">Debug mode is</span>{% endif %}
<span class="new badge" data-badge-caption="{{ null|current_time }}">Page generated on</span>
<h4>Still in development, slowly...</h4>
<h4>This is not a streaming website! Videos may buffer (a lot)!</h4>

2
run.py
View File

@ -1,4 +1,4 @@
import ayta
if __name__ == '__main__':
ayta.create_app().run(host="0.0.0.0")
ayta.create_app().run(debug=True, host="0.0.0.0")