diff --git a/README.md b/README.md index 815f5ca..df8d8a5 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ this is how your config should look at the latest update ``` REGISTRATION = True # Make sure to disable in production +STATIC_FOLDER = 'myriad/static' ICON_UPLOAD_FOLDER = 'myriad/static/icons' # where member icons will be stored BLINKIES_UPLOAD_FOLDER = 'myriad/static/blinkies' # where blinkies will be stored STAMPS_UPLOAD_FOLDER = 'myriad/static/stamps' # where stamps will be stored diff --git a/myriad/manage.py b/myriad/manage.py index 75089e7..2854610 100644 --- a/myriad/manage.py +++ b/myriad/manage.py @@ -468,6 +468,12 @@ def admin(): db.execute("INSERT INTO pages (title, content) VALUES (?, ?)", (page_title, page_content)) db.commit() + + elif "favicon" in request.files: + file = request.files["favicon"] + filename = "favicon.ico" + file.save(os.path.join(current_app.config["STATIC_FOLDER"], filename)) + users = db.execute("SELECT * FROM user").fetchall() front_log = db.execute("SELECT * FROM front_log ORDER BY start_time DESC").fetchall() diff --git a/myriad/static/favicon.ico b/myriad/static/favicon.ico new file mode 100644 index 0000000..352007b Binary files /dev/null and b/myriad/static/favicon.ico differ diff --git a/myriad/templates/base.html b/myriad/templates/base.html index 709bf90..6ff913c 100644 --- a/myriad/templates/base.html +++ b/myriad/templates/base.html @@ -1,6 +1,7 @@
{{page[1]}} - Edit Page ☆ Delete Page
{% endfor %} +This will replace the old favicon, without the ability to restore it if you change your mind
+For best results, use a 32x32 favicon. Icons8 is a good resource, as is this png converter
+Changes will take some time to be reflected - or try a hard/force refresh on the browser
+ -