diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-09-06 14:31:47 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-09-06 14:31:47 -0700 |
commit | 36380b03281690cef7ff95902a724e62e54dee77 (patch) | |
tree | 5e4ce9c3d17c6547d3eeb98bf063cee4c0dae649 /youtube/__init__.py | |
parent | 3dd0371af1cd2469d2c82a9aaae9d86d1ac1bab9 (diff) | |
download | yt-local-36380b03281690cef7ff95902a724e62e54dee77.tar.lz yt-local-36380b03281690cef7ff95902a724e62e54dee77.tar.xz yt-local-36380b03281690cef7ff95902a724e62e54dee77.zip |
Settings: Fix circular dependency for settings_page
Diffstat (limited to 'youtube/__init__.py')
-rw-r--r-- | youtube/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/__init__.py b/youtube/__init__.py index 38ff7d3..0137e86 100644 --- a/youtube/__init__.py +++ b/youtube/__init__.py @@ -3,6 +3,9 @@ import settings yt_app = flask.Flask(__name__) yt_app.url_map.strict_slashes = False + +yt_app.add_url_rule('/settings', 'settings_page', settings.settings_page, methods=['POST', 'GET']) + @yt_app.route('/') def homepage(): return flask.render_template('home.html', title="Youtube local") |