diff --git a/src/app.py b/src/app.py index 6281971..aae2da6 100644 --- a/src/app.py +++ b/src/app.py @@ -1,8 +1,8 @@ from glob import glob from os import mkdir, urandom -from config import Config from flask import Flask +from utils.config import Config app = Flask(__name__, static_url_path="/") diff --git a/src/routes/index.py b/src/routes/index.py index d925e8f..5f8a64c 100644 --- a/src/routes/index.py +++ b/src/routes/index.py @@ -1,5 +1,5 @@ -from config import Config from flask import Blueprint, flash, redirect, render_template, request +from utils.config import Config from utils.misc import create_post, fresh_file_id, get_posts from werkzeug import Response diff --git a/src/routes/login.py b/src/routes/login.py index 0b69ecc..76d6a02 100644 --- a/src/routes/login.py +++ b/src/routes/login.py @@ -1,5 +1,5 @@ -from config import Config from flask import Blueprint, flash, redirect, render_template, request +from utils.config import Config from werkzeug import Response name = __name__.split(".")[-1] diff --git a/src/routes/read.py b/src/routes/read.py index 7a711e0..f8370f9 100644 --- a/src/routes/read.py +++ b/src/routes/read.py @@ -1,5 +1,5 @@ -from config import Config from flask import Blueprint, flash, redirect, render_template +from utils.config import Config from utils.misc import delete_post, get_post, post_file_id, post_filename from werkzeug import Response diff --git a/src/config.py b/src/utils/config.py similarity index 100% rename from src/config.py rename to src/utils/config.py