-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unable to add new administration record #8
Comments
Ah, learning about the exceptions was helpful:
|
Dumping the value of |
No workee. |
Okay, so to sum up what I think is going on with this issue for @georgedorn & @deutrino... In this particular app, which only exists (I think?) in the feature/record-usage branch for now, you can see at line 7 in recadm/models.py the entry that I believe is responsible for the issue. Line 7 in 25816e3
I'm utilizing the foreign key (from a model in subadd/models.py) to reference the substance administered for a particular entry, as is probably pretty self evident. Everything is parsing just fine, but the runtime error that was referenced above is my sole clue at this point. I was going to include more information on this, but honestly, since I've let the project sit for a few weeks (not being able to turn up more information on this myself, at least up to this point) I've kind of forgotten what other information I had that might be helpful. Feel free to ping me on any supporting details that might be necessary. |
The value that I believe is the integer in question can be found here: Line 35 in 25816e3
Line 36 in 25816e3
Suddenly I have the feeling that I'm missing something basic enough that I should know it off the top of my head. Maybe taking a break from coding on this for a bit was a good thing, I think I have a thought brewing that may help this... Also, I am sure that there has to be a way to quote multiple lines from one of the source files in question, instead of just that link to one. If anybody can slap me with how to do this I'd be most appreciative. |
Yeah, getting access to the actual error message, preferably in traceback form, is going to make debugging this trivial. You might try setting up the |
Thank you for the input. I'm installing it now. I was figuring there must be some sort of bit I was missing to get a little more detailed information on all of this... |
Here's what I'm getting at this point:
I guess it's the |
What it is saying is that you are looking for But way more likely, you don't want to do any of this, and instead should be using a django form for this. |
I actually switched to using forms just a little bit after this problem roadblocked me, or else right before. I didn't know how to do the ForeignKeys` retrieval for the radio button menu on the form yet, or else I would've implemented it that way. That shouldn't be too tough to find, though, I'll see if I can't find that, since I'm already using forms in one other area. |
… to try doing it with the model, then had the obvious pointed out that it was time to switch to Django forms. In the process of implementing that; no testing has taken place yet, tho.
Alright so, in the last 2 commits, I began implementing things the Django Way(tm), instead of with the horrendous workarounds that I had used before I hit those portions of the tutorials. Switching over seemed easy enough, except for the Line 5 in 57d311a
Any suggestions as to where I could go for some more information on this particular bit of the issue? I've not been able to turn up anything yet. BTW: @georgedorn, your pointers and explanations are very much appreciated, just so you know. :) Thank you for taking some time to point out the trivial & obvious to me here. ;) |
Unable to save to the database for an unknown reason. Such a very helpful error message. I should probably start looking for specific exceptions. Haven't had a chance to do that in python just yet. Anyway, the saving & adding record logic in the recadm app should be just about completed, as soon as this stumbling block is out of the way.
The text was updated successfully, but these errors were encountered: