summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-25 04:07:09 +0200
committerDan McGee <dan@archlinux.org>2010-06-08 15:35:58 +0200
commit8bf0bfeac7f1cdfee19432b3eb77c48f4fedef08 (patch)
treec47a39014eee247428dd471f1897aabdccae64c6 /packages
parentbad2825fab9f45f468414ed551bad9d987923600 (diff)
downloadarchweb-8bf0bfeac7f1cdfee19432b3eb77c48f4fedef08.tar.gz
archweb-8bf0bfeac7f1cdfee19432b3eb77c48f4fedef08.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
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),