BaySchoolCS2 / ProjectRepo

Whirpl - A network designed with small communities in mind
MIT License
1 stars 9 forks source link

Log in and log out #4

Closed fhebert-perkins closed 9 years ago

fhebert-perkins commented 9 years ago

Everything works! at least as far as i can tell. Sign up, login, and logout all work.

michardy commented 9 years ago

I attempted to sign up

NameError

NameError: global name 'redirect' is not defined
Traceback (most recent call last)

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__

    return self.wsgi_app(environ, start_response)

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app

    response = self.make_response(self.handle_exception(e))

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception

    reraise(exc_type, exc_value, tb)

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app

    response = self.full_dispatch_request()

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request

    rv = self.handle_user_exception(e)

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception

    reraise(exc_type, exc_value, tb)

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request

    rv = self.dispatch_request()

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/venv/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)

    File "/home/michael/Code/CS2/fork/fhebert-perkins/ProjectRepo/application/signup.py", line 17, in signup

    return redirect(url_for("login"))

    NameError: global name 'redirect' is not defined
fhebert-perkins commented 9 years ago

should of just fixed that... Aparently flash just refuses to work with unit testing. Ah more errors.

fhebert-perkins commented 9 years ago

So the code works fine as far as i can tell... Unit tests need work still however. Im going to go ahead and say that this is ok for now...