Radeon4650 / PocketBudgetTracker

Another one budget tracker with local server
Apache License 2.0
1 stars 0 forks source link

Created connection to db and base tables #10

Closed AndreyShelest closed 6 years ago

AndreyShelest commented 6 years ago

to resolve issue with imports just add 'sources' folder to PYTHONPATH. or mark it as sources in PyCharm project configuration

approximator commented 6 years ago

just add 'sources' folder to PYTHONPATH. or mark it as sources in PyCharm project configuration

This is a bad workaround, I think. Moreover, there is no any README or commit message saying about this )

approximator commented 6 years ago
# curl http://127.0.0.1:8788/budget
<html><title>500: Internal Server Error</title><body>500: Internal Server Error</body></html>
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: users [SQL: 'SELECT users.id AS users_id, users.login AS users_login, users.pwd_hash AS users_pwd_hash, users.username AS users_username, users.user_pic AS users_user_pic \nFROM users\n LIMIT ? OFFSET ?'] [parameters: (1, 0)] (Background on this error at: http://sqlalche.me/e/e3q8)
09-10-2018:22:31:13.266 ERROR    [web.py:2162] 500 GET /budget (127.0.0.1) 18.49ms