Skip to content

Commit

Permalink
WSGI modifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Feb 13, 2014
1 parent 904630a commit e17d2f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bullshit.wsgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import sys
sys.path.insert(0, '/home/michael/bullshit')
from bullshit.webapp import app as application
2 changes: 2 additions & 0 deletions bullshit/webapp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .webapp import app
__all__ = ["app"]
4 changes: 2 additions & 2 deletions bullshit/webapp/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit e17d2f4

Please sign in to comment.