New page created not loading

Hello,
I’m trying to learn how to create a web app using Docker.
After going through some lecture videos, I tried to put my skills into practice and create a new web page based on the existing files sort of as a template. After spending much time creating the page,
I’m presented with the errors as the following when i tried to visit local.docker:8000/budget/input:

website_1 | [2017-08-08 05:58:46 +0000] [8] [ERROR] Error handling request /budget/input
website_1 | Traceback (most recent call last):
website_1 | File “/usr/local/lib/python2.7/site-packages/gunicorn/workers/sync.py”, line 130, in handle
website_1 | self.handle_request(listener, req, client, addr)
website_1 | File “/usr/local/lib/python2.7/site-packages/gunicorn/workers/sync.py”, line 171, in handle_request
website_1 | respiter = self.wsgi(environ, resp.start_response)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1836, in call
website_1 | return self.wsgi_app(environ, start_response)
website_1 | File “/usr/local/lib/python2.7/site-packages/werkzeug/contrib/fixers.py”, line 152, in call
website_1 | return self.app(environ, start_response)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1820, in wsgi_app
website_1 | response = self.make_response(self.handle_exception(e))
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1403, in handle_exception
website_1 | reraise(exc_type, exc_value, tb)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1817, in wsgi_app
website_1 | response = self.full_dispatch_request()
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1477, in full_dispatch_request
website_1 | rv = self.handle_user_exception(e)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1381, in handle_user_exception
website_1 | reraise(exc_type, exc_value, tb)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1475, in full_dispatch_request
website_1 | rv = self.dispatch_request()
website_1 | File “/usr/local/lib/python2.7/site-packages/flask_debugtoolbar/init.py”, line 125, in dispatch_request
website_1 | return view_func(**req.view_args)
website_1 | TypeError: input() takes exactly 1 argument (0 given)
website_1 | 192.168.99.1 - - [08/Aug/2017:05:58:46 +0000] “GET /budget/input HTTP/1.1” 500 - “-” “-” in 3492µs

In addition, i’m presented with the following when i try to visit local.docker:8000/budget/view

website_1 | [2017-08-08 06:00:44 +0000] [8] [ERROR] Error handling request /budget/view
website_1 | Traceback (most recent call last):
website_1 | File “/usr/local/lib/python2.7/site-packages/gunicorn/workers/sync.py”, line 130, in handle
website_1 | self.handle_request(listener, req, client, addr)
website_1 | File “/usr/local/lib/python2.7/site-packages/gunicorn/workers/sync.py”, line 171, in handle_request
website_1 | respiter = self.wsgi(environ, resp.start_response)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1836, in call
website_1 | return self.wsgi_app(environ, start_response)
website_1 | File “/usr/local/lib/python2.7/site-packages/werkzeug/contrib/fixers.py”, line 152, in call
website_1 | return self.app(environ, start_response)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1820, in wsgi_app
website_1 | response = self.make_response(self.handle_exception(e))
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1403, in handle_exception
website_1 | reraise(exc_type, exc_value, tb)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1817, in wsgi_app
website_1 | response = self.full_dispatch_request()
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1477, in full_dispatch_request
website_1 | rv = self.handle_user_exception(e)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1381, in handle_user_exception
website_1 | reraise(exc_type, exc_value, tb)
website_1 | File “/usr/local/lib/python2.7/site-packages/flask/app.py”, line 1475, in full_dispatch_request
website_1 | rv = self.dispatch_request()
website_1 | File “/usr/local/lib/python2.7/site-packages/flask_debugtoolbar/init.py”, line 125, in dispatch_request
website_1 | return view_func(**req.view_args)
website_1 | TypeError: view() takes exactly 1 argument (0 given)
website_1 | 192.168.99.1 - - [08/Aug/2017:06:00:44 +0000] “GET /budget/view HTTP/1.1” 500 - “-” “-” in 476µs

I’m very sure that I’ve done all the declarations that I need for them to work. My files are located here. I’ve been stuck on this for a very long time and I can’t seem to find the solution to fix the problem. Any guidance and help are greatly appreciated!!

your flask app is broken. does it work locally? does it work when you connect to the container and start your app within the python interpreter?
maybe you wrote it for python3 and just installed python2?

Sorry, what do you mean by python interpreter?
In the video I follow, i always start the app by opening docker terminal and enter

docker-compose up --build

Then I go to local.docker:8000 to see the page

docker exec -ti your_flask_contiainer python3…there try to instantiate your flask app.