diff options
author | Frederick Muriuki Muriithi | 2024-07-25 16:53:28 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-07-26 16:45:31 -0500 |
commit | 365f360f0e79c761bd6fb9c26009b4f782f752eb (patch) | |
tree | b3487d936b0d15fae760a9f6c74dc327bb425d36 /uploader/__init__.py | |
parent | 7ec7146f64cb6634b84f295c5a15804d7f77451f (diff) | |
download | gn-uploader-365f360f0e79c761bd6fb9c26009b4f782f752eb.tar.gz |
Initialise sessions for the application.
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r-- | uploader/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py index feffcae..a3b36e7 100644 --- a/uploader/__init__.py +++ b/uploader/__init__.py @@ -4,6 +4,7 @@ import logging from pathlib import Path from flask import Flask, request +from flask_session import Session from .entry import entrybp from .upload import upload @@ -41,6 +42,8 @@ def create_app(): # setup jinja2 symbols app.add_template_global(lambda : request.url, name="request_url") + Session(app) + # setup blueprints app.register_blueprint(base, url_prefix="/") app.register_blueprint(entrybp, url_prefix="/") |