Hi Brooke, thanks for the welcome.
Firstly, no, I didn’t previously follow all the steps in the guide. I thought I could (lazily) take the shortcut of cloning the example app, and that’s how I got the errors reported earlier.
So, I tried again following the steps, creating a blank app, etc. and found some problems.
- Instruction syas
- Change the
role to ‘primary-color’.
I don’t see that role, I only have choices
elevated-button, filled-button, etc.
- When I follow the remaining steps, and “Run”, I get
AttributeError: 'Form1' object has no attribute 'update_login_status'
I noticed that the cloned app has replaced (in Form1 / Test)
. import custom_signup.login_flow
with
. from … import login_flow
so I tried that, and get
. AttributeError: (most likely due to a circular import) partially initialized module ‘M3_App_2’ has no attribute ‘login_flow’
on this import line.
So, I’ve given up on following all the steps, and gone back to the cloned app.
You suggested:
If you look in the Server Module of the Custom sign-up flow app, you can see that force_login() is used within the _confirm_email_address function. I recommend adding a print statement in that function to figure out what user is since that error statement indicates it’s not a row from the users table.
However, I can’t get to this point in the code in the IDE, only by publishing it and running that. And in this case, I don’t see console output, I only get the alert box that says
This apop has experienced an error.
anvil.server.InternalError: force_login() must be passed a row from the users table
Is there a way to see the output from print statements when running a published app ?