Hi, Whenever I try to login or register a user in my app, I come across an error. This must be due to issues with my database or ORM. The database and app runs fine on my local machine. Here are the error logs:
2015-08-19 20:39:43,526 : File "/bin/user_wsgi_wrapper.py", line 130, in __call__
2015-08-19 20:39:43,527 : self.error_log_file.logger.exception("Error running WSGI application")
2015-08-19 20:39:43,527 : File "/usr/lib/python2.7/logging/__init__.py", line 1185, in exception
2015-08-19 20:39:43,527 : self.error(msg, *args, **kwargs)
2015-08-19 20:39:43,527 : File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2015-08-19 20:39:43,528 : self._log(ERROR, msg, args, **kwargs)
2015-08-19 20:39:43,528 : File "/usr/lib/python2.7/logging/__init__.py", line 1270, in _log
2015-08-19 20:39:43,528 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2015-08-19 20:39:43,528 : File "/usr/lib/python2.7/logging/__init__.py", line 1244, in makeRecord
2015-08-19 20:39:43,528 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2015-08-19 20:39:43,529 : File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2015-08-19 20:39:43,529 : self.threadName = threading.current_thread().name
2015-08-19 20:39:43,529 : File "/usr/lib/python2.7/threading.py", line 1160, in currentThread
2015-08-19 20:39:43,529 : return _active[_get_ident()]
2015-08-19 20:39:43,529 : File "/bin/user_wsgi_wrapper.py", line 122, in __call__
2015-08-19 20:39:43,529 : app_iterator = self.app(environ, start_response)
2015-08-19 20:39:43,530 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
2015-08-19 20:39:43,534 : return self.wsgi_app(environ, start_response)
2015-08-19 20:39:43,535 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
2015-08-19 20:39:43,536 : response = self.make_response(self.handle_exception(e))
2015-08-19 20:39:43,536 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
2015-08-19 20:39:43,537 : reraise(exc_type, exc_value, tb)
2015-08-19 20:39:43,537 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
2015-08-19 20:39:43,538 : response = self.full_dispatch_request()
2015-08-19 20:39:43,538 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
2015-08-19 20:39:43,539 : rv = self.handle_user_exception(e)
2015-08-19 20:39:43,539 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
2015-08-19 20:39:43,539 : reraise(exc_type, exc_value, tb)
2015-08-19 20:39:43,540 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
2015-08-19 20:39:43,540 : rv = self.dispatch_request()
2015-08-19 20:39:43,541 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
2015-08-19 20:39:43,541 : return self.view_functions[rule.endpoint](**req.view_args)
2015-08-19 20:39:43,541 : File "/home/ddircz/FIJIapp/app.py", line 103, in login
2015-08-19 20:39:43,543 : user = models.User.get(models.User.email == form.email.data)
2015-08-19 20:39:43,543 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/peewee.py", line 4138, in get
2015-08-19 20:39:43,544 : return sq.get()
2015-08-19 20:39:43,544 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/peewee.py", line 2740, in get
2015-08-19 20:39:43,546 : return clone.execute().next()
2015-08-19 20:39:43,546 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/peewee.py", line 2787, in execute
2015-08-19 20:39:43,547 : self._qr = ResultWrapper(model_class, self._execute(), query_meta)
2015-08-19 20:39:43,547 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/peewee.py", line 2470, in _execute
2015-08-19 20:39:43,548 : return self.database.execute_sql(sql, params, self.require_commit)
2015-08-19 20:39:43,548 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/peewee.py", line 3199, in execute_sql
2015-08-19 20:39:43,549 : self.commit()
2015-08-19 20:39:43,549 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/peewee.py", line 3048, in __exit__
2015-08-19 20:39:43,550 : reraise(new_type, new_type(*exc_args), traceback)
2015-08-19 20:39:43,550 : File "/home/ddircz/FIJIapp/venv/lib/python2.7/site-packages/peewee.py", line 3191, in execute_sql
2015-08-19 20:39:43,551 : cursor.execute(sql, params or ())
2015-08-19 20:39:43,551 :peewee.OperationalError: no such table: user
Why is my database not working properly? I have searched for hours trying to find a solution, and I am quite frustrated. Any help would be much appreciated. Let me know if there is any more information I can provide. http://ddircz.pythonanywhere.com/ Thanks