At lost on how to get gae_bingo up and running
Closed this issue · 1 comments
Please help me. I'm new to web development, so any help is greatly appreciated.
I'm having these issues.
- does it work on local deployment?
- i'm getting 404 when trying to access the dashboard through localhost:9080/gae_bingo/dashboard
- A/B test does not seem to be happening, i'm always getting TRUE value even after multiple refresh.
Thanks.
My code is as follows:
import webapp2
from gae_bingo.gae_bingo import ab_test, bingo
use_new_button_design = ab_test("new button design")
form = """
""" + str(use_new_button_design)
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.out.write(form)
class TestHandler(webapp2.RequestHandler):
def get(self):
bingo("new button design")
q = self.request.get("q")
self.response.out.write(q)
app = webapp2.WSGIApplication([('/', MainHandler),
('/testform', TestHandler)],
debug=True)
from gae_bingo.middleware import GAEBingoWSGIMiddleware
app = GAEBingoWSGIMiddleware(app)
It turns out the solution is just import webapp2 as webapp.