# create all tables needed by auth, maybe add a list of extra fields # ------------------------------------------------------------------------- auth.settings.extra_fields['auth_user'] = [] auth.define_tables(username=False, signature=False)
# ------------------------------------------------------------------------- # configure email # ------------------------------------------------------------------------- mail = auth.settings.mailer mail.settings.server = configuration.get('smtp.gmail.com:587') mail.settings.sender = configuration.get('myem...@gmail.com' ) mail.settings.login = 'myem...@gmail.com:PASSWORD' mail.settings.tls = True mail.settings.ssl = True # ------------------------------------------------------------------------- # configure auth policy # ------------------------------------------------------------------------- auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True i tried doing the above but i am getting and error that is below 127.0.0.1.2018-06-18.11-37-46.5e07fa41-f98f-4917-879a-801e1a7e03c7 <type 'exceptions.Exception'> Server address not specified Version web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25 Python Python 2.7.9: C:\Users\elisha.bere\Downloads\my_python_files\PIZZZA PROJECT\web2py_win\web2py\web2py.exe (prefix: ) Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. Traceback (most recent call last): File "C:\Users\elisha.bere\Downloads\my_python_files\PIZZZA PROJECT\web2py_win\web2py\gluon\restricted.py", line 219, in restricted exec(ccode, environment) File "C:/Users/elisha.bere/Downloads/my_python_files/PIZZZA PROJECT/web2py_win/web2py/applications/fproject/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/fproject/controllers/default.py>, line 59, in <module> File "C:\Users\elisha.bere\Downloads\my_python_files\PIZZZA PROJECT\web2py_win\web2py\gluon\globals.py", line 419, in <lambda> self._caller = lambda f: f() File "C:/Users/elisha.bere/Downloads/my_python_files/PIZZZA PROJECT/web2py_win/web2py/applications/fproject/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/fproject/controllers/default.py>, line 48, in user return dict(form=auth()) File "C:\Users\elisha.bere\Downloads\my_python_files\PIZZZA PROJECT\web2py_win\web2py\gluon\tools.py", line 1925, in __call__ return getattr(self, args[0])() File "C:\Users\elisha.bere\Downloads\my_python_files\PIZZZA PROJECT\web2py_win\web2py\gluon\tools.py", line 3613, in request_reset_password if self.email_reset_password(user): File "C:\Users\elisha.bere\Downloads\my_python_files\PIZZZA PROJECT\web2py_win\web2py\gluon\tools.py", line 3637, in email_reset_password message=self.messages.reset_password % d): File "C:\Users\elisha.bere\Downloads\my_python_files\PIZZZA PROJECT\web2py_win\web2py\gluon\tools.py", line 431, in send raise Exception('Server address not specified') Exception: Server address not specified Error snapshot [image: help] <http://127.0.0.1:8000/admin/default/ticket/fproject/127.0.0.1.2018-06-18.11-37-46.5e07fa41-f98f-4917-879a-801e1a7e03c7#> <type 'exceptions.Exception'>(Server address not specified) inspect attributes -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.