From e2475a9b1d8b678656c00f0b8067b4a87f935971 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Tue, 10 Aug 2010 17:01:19 +0300 Subject: Use GRUMPY_SERVER_ADDR conf variable and fix emails --- conf/grumpy.cfg | 4 ++-- grumpy/templates/email/registration.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/grumpy.cfg b/conf/grumpy.cfg index 292800b..da07dfa 100644 --- a/conf/grumpy.cfg +++ b/conf/grumpy.cfg @@ -13,8 +13,8 @@ SQLALCHEMY_ECHO=False SQLALCHEMY_DATABASE_URI='postgresql://grumpy:grumpy@localhost/grumpy' ## Grumpy configuration -# URL of website -GRUMPY_WEBSITE_URL='http://localhost:5000' +# Server address without the /path +GRUMPY_SERVER_ADDR='http://localhost:5000' # Default portage directory GRUMPY_PORTAGE_DIR='/usr/portage' diff --git a/grumpy/templates/email/registration.txt b/grumpy/templates/email/registration.txt index f4e05bb..121da19 100644 --- a/grumpy/templates/email/registration.txt +++ b/grumpy/templates/email/registration.txt @@ -1,6 +1,6 @@ Hey! -You have signed up on Gentoo's Grumpy ( {{ config['GRUMPY_WEBSITE_URL']}} ), +You have signed up on Gentoo's Grumpy ( {{ config['GRUMPY_SERVER_ADDR']}}{{url_for('index')}} ), but your account is not yet activated. In order to activate your account, please visit the following address: -{{ config['GRUMPY_WEBSITE_URL']}}{{ url_for('confirm_account', email=user.email) }}?token={{ user.regtoken }} +{{ config['GRUMPY_SERVER_ADDR']}}{{ url_for('confirm_account', email=user.email) }}?token={{ user.regtoken }} -- cgit v1.2.3-65-gdbad