diff --git a/flask_website/__init__.py b/flask_website/__init__.py new file mode 100644 index 00000000..13fa2ef1 --- /dev/null +++ b/flask_website/__init__.py @@ -0,0 +1,14 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.errorhandler(404) +def not_found(error): + return render_template('404.html'), 404 + +from flask_website.views.general import general +from flask_website.views.mailinglist import mailinglist +from flask_website.views.snippets import snippets +app.register_module(general) +app.register_module(mailinglist) +app.register_module(snippets) diff --git a/static/logo.png b/flask_website/static/logo.png similarity index 100% rename from static/logo.png rename to flask_website/static/logo.png diff --git a/static/mailinglist.js b/flask_website/static/mailinglist.js similarity index 100% rename from static/mailinglist.js rename to flask_website/static/mailinglist.js diff --git a/static/mailinglist.png b/flask_website/static/mailinglist.png similarity index 100% rename from static/mailinglist.png rename to flask_website/static/mailinglist.png diff --git a/static/mask.png b/flask_website/static/mask.png similarity index 100% rename from static/mask.png rename to flask_website/static/mask.png diff --git a/static/ship.png b/flask_website/static/ship.png similarity index 100% rename from static/ship.png rename to flask_website/static/ship.png diff --git a/static/snippets.png b/flask_website/static/snippets.png similarity index 100% rename from static/snippets.png rename to flask_website/static/snippets.png diff --git a/static/style.css b/flask_website/static/style.css similarity index 100% rename from static/style.css rename to flask_website/static/style.css diff --git a/templates/404.html b/flask_website/templates/404.html similarity index 100% rename from templates/404.html rename to flask_website/templates/404.html diff --git a/templates/index.html b/flask_website/templates/general/index.html similarity index 100% rename from templates/index.html rename to flask_website/templates/general/index.html diff --git a/templates/layout.html b/flask_website/templates/layout.html similarity index 100% rename from templates/layout.html rename to flask_website/templates/layout.html diff --git a/templates/mailinglist/archive.html b/flask_website/templates/mailinglist/archive.html similarity index 86% rename from templates/mailinglist/archive.html rename to flask_website/templates/mailinglist/archive.html index 541d7287..c251aeb5 100644 --- a/templates/mailinglist/archive.html +++ b/flask_website/templates/mailinglist/archive.html @@ -13,13 +13,13 @@