Where did you put the options? Make sure the options are inside the [app:main] section, otherwise you might end up providing the options to the server or logging or even other sections :D
Bests, Alessandro On Wed, Jan 13, 2016 at 11:10 AM, <[email protected]> wrote: > Hi again, Hey I am having some issue with mine... I am trying to use > tgext.mailer and I have it installed and plugged and etc in my app_cfg.py > and I have this listed in my development.ini file: > > " > registration.email_sender = mailer@localhost > > mail.host = localhost > mail.port = 25 > mail.username = username > mail.password = password > mail.tls = false > mail.ssl = false > “ > > But I keep on getting this error once I have filled out the registration > form: "KeyError: ‘registration.email_sender'" > > Can you please help me with this... I do not understand what I am doing > wrong... > > > On Saturday, 9 January 2016 07:12:06 UTC+11, Alessandro Molina wrote: >> >> Thank you for pointing out that it wasn't clear, I just made a commit to >> better explain the option ( >> https://bitbucket.org/axant/tgapp-registration/commits/2c649045529fd5846069cb8ea190061785279afa >> ) >> >> On Fri, Jan 8, 2016 at 5:39 PM, <[email protected]> wrote: >> >>> Thank you Alessandro. >>> >>> On Saturday, 9 January 2016 01:16:57 UTC+11, Alessandro Molina wrote: >>>> >>>> registration.email_sender is actually the email address sending the >>>> outgoing emails, something like [email protected] >>>> >>>> Regarding the email delivery, if tgext.mailer is enabled and configured >>>> that is used, if tgext.mailer is not available then turbomail is checked. >>>> If neither of those is available and configured, then python smtplib is >>>> used (which can be configured through the registration.smtp_host / >>>> registration.smtp_login and registration.smtp_passwd options). >>>> >>>> So to have outgoing emails working make sure you have tgext.mailer >>>> configured or that you have specified the three options for smtplib >>>> delivery >>>> >>>> On Fri, Jan 8, 2016 at 12:57 PM, <[email protected]> wrote: >>>> >>>>> Hi, Cool, thank you. I am using tgapp-registration, I see you are the >>>>> author of it, that is cool :) >>>>> >>>>> Hey I am wondering if you can help me with a new question regarding >>>>> the tgapp-registration... You see I get this error when I try to register >>>>> a >>>>> new user: >>>>> >>>>> KeyError: ‘registration.email_sender' >>>>> >>>>> Now I put: >>>>> >>>>> registration.email_sender = turbomail >>>>> >>>>> into my development.ini file but it is most likely wrong... How do I >>>>> setup this properly? The registration.email_sender part..? >>>>> >>>>> Thanks >>>>> >>>>> On Wednesday, 30 December 2015 22:27:38 UTC+11, Alessandro Molina >>>>> wrote: >>>>>> >>>>>> Uhm, if I understood your question correctly you just want to provide >>>>>> a registration form, correct? >>>>>> In that case you might want to try tgapp-registration ( >>>>>> https://pypi.python.org/pypi/tgapp-registration ) which provides >>>>>> registration out of the box for you. >>>>>> >>>>>> In case that's not what you need, it should be fairly easy to just >>>>>> provide a "createaccount_handler" method to your RootController and make >>>>>> a >>>>>> form that submits there. >>>>>> You just need to set the "action" of your form to >>>>>> /createaccount_handler and it will receive all the form data. Then you >>>>>> can >>>>>> create the user like any other model model.User(user_name="foo", >>>>>> email_address="[email protected]") and just log it in with >>>>>> http://turbogears.readthedocs.org/en/latest/reference/classes.html#tg.controllers.util.auth_force_login >>>>>> >>>>>> >>>>>> >>>>>> On Wed, Dec 30, 2015 at 7:52 AM, <[email protected]> wrote: >>>>>> >>>>>>> But I think I have it figured out now... If I should not edit the >>>>>>> fastform.py file then perhaps I should just add a file to the model >>>>>>> directory in the tg2 base folder. Called createuser.py... >>>>>>> >>>>>>> >>>>>>> On Wednesday, 30 December 2015 16:08:58 UTC+11, [email protected] >>>>>>> wrote: >>>>>>>> >>>>>>>> Hi, First thanks for your reply. I am trying to make a web form >>>>>>>> where a user can create a new user account. And so I noticed that the >>>>>>>> default login form is redirected to the fastform.py file by a >>>>>>>> /login_handler. So i though that if I wanted to create a >>>>>>>> ‘createaccount_handler’ then I would need to edit this fastform.py >>>>>>>> file..? >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> On Monday, 28 December 2015 03:03:29 UTC+11, Alessandro Molina >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Uh, no the fastform.py is something internal and you should not >>>>>>>>> need to change it. It's not clear to me what you are trying to >>>>>>>>> achieve, can >>>>>>>>> you provide more details? >>>>>>>>> >>>>>>>>> Il giorno sab 26 dic 2015 21:59 <[email protected]> ha scritto: >>>>>>>>> >>>>>>>>>> Hey guys I am trying to make a create new user account page, and >>>>>>>>>> I have made the form, but now to connect it to the database am I >>>>>>>>>> supposed >>>>>>>>>> to edit the fastform.py file? >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> You received this message because you are subscribed to the >>>>>>>>>> Google Groups "TurboGears" group. >>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>>>> send an email to [email protected]. >>>>>>>>>> To post to this group, send email to [email protected]. >>>>>>>>>> Visit this group at https://groups.google.com/group/turbogears. >>>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>>> >>>>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "TurboGears" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>> send an email to [email protected]. >>>>>>> To post to this group, send email to [email protected]. >>>>>>> Visit this group at https://groups.google.com/group/turbogears. >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> >>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "TurboGears" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at https://groups.google.com/group/turbogears. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "TurboGears" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/turbogears. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

