-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Days 37-40: Intro to Pyramid: Adding the data models #33
Comments
My assumption is wrong i.e. that My code works after reverting to I'm still at a loss as to why my version was not working. When I was debugging it I could clearly see that the Anyway, I am closing this issue. |
Hi @gloc-mike It definitely needs to be returning a Session. But I think the problem was it's returning Hope that helps! |
Hi, I created a new Pyramid project with which I want to build to track timesheet info and I am getting the original error (the error that occurred BEFORE the error I originally reported in this issue). Please see the Gist I created for this error: I created the timesheet project using PyCharm using the Pyramid project template (not the from the commandline using the cookiecutter template). The PyCharm template for Pyramid comes with a lot of After making all of the necessary changes needed, I ran it and it failed when the Here is the link to the timesheets project on GitHub: Thanks for the help! |
Hi, I responded to the issue in the gist. |
Hi @gloc-mike There were quite a few issues with the repo. Here's a running version. Try doing a diff on the directories to see what changed. :) https://send.firefox.com/download/406ddab5c4cabb0c/#iau8zBEX6mH9Bwbd5QOnxQ |
In this section of the course, I copied the
bin
,data
anddb
code from the 100 Days GitHub repo into my version of the code.I found that in
data/db_session.py
, the return value needs to be the attributefactory
i.e.DbSession.factory
, rather than the method i.e.DbSession.factory()
.However, after fixing that issue, I am now confronted with another. In
bin/load_base_data.py
, the session returned does not have the 'query' attribute!I created this Gist which shows the error:
https://gist.github.com/gloc-mike/ddb4fb4ca0aa1ba81209623a8858d606.
When I review the
session
object in the debug console in PyCharm, I can see that 'query' appears in thepublic_methods
tuple (see attached screenshot) but the my watch expression again, shows the attribute error.Any ideas to help me resolve this issue would be appreciated.
The text was updated successfully, but these errors were encountered: