diff --git a/bullshit.wsgi b/bullshit.wsgi new file mode 100644 index 0000000..995299b --- /dev/null +++ b/bullshit.wsgi @@ -0,0 +1,3 @@ +import sys +sys.path.insert(0, '/home/michael/bullshit') +from bullshit.webapp import app as application diff --git a/bullshit/webapp/__init__.py b/bullshit/webapp/__init__.py index e69de29..b571b84 100644 --- a/bullshit/webapp/__init__.py +++ b/bullshit/webapp/__init__.py @@ -0,0 +1,2 @@ +from .webapp import app +__all__ = ["app"] diff --git a/bullshit/webapp/webapp.py b/bullshit/webapp/webapp.py index 882e9bc..cc67a0a 100644 --- a/bullshit/webapp/webapp.py +++ b/bullshit/webapp/webapp.py @@ -3,11 +3,11 @@ app = Flask(__name__) -@app.route("/horoscope/") +@app.route("/") def get_horoscope(): return render_template("horoscope.html", horoscope=horoscope.generate()) -@app.route("/horoscope/dirty/") +@app.route("/dirty/") def get_dirty_horoscope(): return render_template("horoscope.html", horoscope=horoscope.generate(dirty=True))