summaryrefslogtreecommitdiffstats
path: root/todolists
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 /todolists
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 'todolists')
-rw-r--r--todolists/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 155e522..653b511 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -139,7 +139,7 @@ def send_todolist_email(todo):
page_dict = {
'pkg': todo.pkg,
'todolist': todo.list,
- 'weburl': 'http://www.archlinux.org'+ todo.pkg.get_absolute_url()
+ 'weburl': todo.pkg.get_full_url()
}
t = loader.get_template('todolists/email_notification.txt')
c = Context(page_dict)