diff options
author | Dan McGee <dan@archlinux.org> | 2010-05-24 21:07:09 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-08 08:35:58 -0500 |
commit | 8bf0bfeac7f1cdfee19432b3eb77c48f4fedef08 (patch) | |
tree | c47a39014eee247428dd471f1897aabdccae64c6 /todolists | |
parent | bad2825fab9f45f468414ed551bad9d987923600 (diff) |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |