From 8bf0bfeac7f1cdfee19432b3eb77c48f4fedef08 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 24 May 2010 21:07:09 -0500 Subject: Use Sites framework instead of hardcoded domain name Instead of putting 'www.archlinux.org' all over the place, use the Django sites framework to pull the site name out of the database. Now these amazing things will work if you are running locally and decide to change the site! Signed-off-by: Dan McGee --- packages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/views.py b/packages/views.py index 9053906..c3a6c2b 100644 --- a/packages/views.py +++ b/packages/views.py @@ -302,7 +302,7 @@ def flag(request, name='', repo='', arch=''): 'email': form.cleaned_data['email'], 'message': form.cleaned_data['usermessage'], 'pkg': pkg, - 'weburl': 'http://www.archlinux.org'+ pkg.get_absolute_url() + 'weburl': pkg.get_full_url(), }) send_mail(subject, t.render(c), -- cgit v1.2.3-24-g4f1b