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 --- todolists/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'todolists') diff --git a/todolists/views.py b/todolists/views.py index 155e522b..653b5113 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) -- cgit v1.2.3-54-g00ecf