Forums

Signup works locally, doesn't work on pythonanywhere servers...help?

I wrote a signup code with web2py which works perfectly fine locally, after I packed the application and installed it on pythonanywhere, the signup doesn't work... is there a configuration issue? I'm so frustrated and i don't know what to do cos the code works just fine locally... please help

helloo...

Can you be more specific. I use web2py and have had no issue with login/register process.

Can you show your code.

def login():
    #login form
    login = auth.login(next="index")
    #register form
    register = auth.register(next="verify")
    return dict(login=login, register=register,)

default/login.html

...
{{=register}}
...

The register code in the login.html file is longer than just {{=register}}, it's actually very long but i get the same result even when it's just {{=register}}. every time I try the signup, it reloads the login page

you can see my problem at http://official-notebook.com you can try signing up with the default values if it helps your debugging process. thanks

What is the error ticket you receive?

no error ticket, that's the weird part

No worries guys, it's fine. the problem had to do with my db.py file, concerning mail settings, it's resolved now though, thanks

Thanks for letting us know! And sorry for the slow response, looks like we must have dropped this one over the weekend.