When base.public.url is set?

Asked by Fumito Mizuno

In http:/sahana.jp/, a new registered user receive a mail Click on the link http://127.0.0.1:8000/eden/default/user/verify_email/XXXXXXXXXXXXXXXXXXXXXXXXXX

deployment_settings.base.public.url is set "http://sahana.jp:80" in models/000_config.py

If I modify the link on a mail manually, that is, http://sahana.jp/eden/default/user/verify_email/XXXXXXXXXXXXXXXXXXXXXXXXXX it works.

Question information

Language:
English Edit question
Status:
Solved
For:
Sahana-Eden Edit question
Assignee:
No assignee Edit question
Solved by:
Fumito Mizuno
Solved:
Last query:
Last reply:
Revision history for this message
Fran Boon (flavour) said :
#1

As you note, the public_url is defined in models/000_config.py:
deployment_settings.base.public_url = "http://sahana.jp"
(You shouldn't need the port for 80)

The message is generated in models/00_settings.py:
auth.messages.verify_email = "%s %s/%s/default/user/verify_email/%s %s" % (T("Click on the link"),
                                                                           deployment_settings.get_base_public_url(),
                                                                           request.application,
                                                                           "%(key)s",
                                                                           T("to verify your email"))

This works fine when I test it here.
Perhaps someone has changed the 00_settings.py file locally?

Revision history for this message
Fumito Mizuno (ounziw) said :
#2

Dear, Fran

I cleared compiled directory and compiled files.
Then I registered again and I received a desirable link via a mail.

Thank you for your help.

Best regards,
Fumito MIZUNO