diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-05 23:59:03 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-05 23:59:03 -0600 |
commit | d4731a373ca665d4547eb0e89cdf270d41c44243 (patch) | |
tree | 41dbfb57e5f6745ad6ac3acd5de8c4d9788c950c /public/views.py | |
parent | c8d979b8a48805d162ab46cdc4e493da0aa1595c (diff) | |
parent | 803ba89841468bcf088ea79ea981a849ca159682 (diff) |
Merge branch 'archweb' into archweb-generic
Diffstat (limited to 'public/views.py')
-rw-r--r-- | public/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/public/views.py b/public/views.py index 7dd0528c..910b6c2d 100644 --- a/public/views.py +++ b/public/views.py @@ -25,10 +25,12 @@ def index(request): else: def updates(): return get_recent_updates() + domain = "%s://%s" % (request.scheme, request.META.get('HTTP_HOST')) context = { 'news_updates': News.objects.order_by('-postdate', '-id')[:15], 'pkg_updates': updates, 'staff_groups': StaffGroup.objects.all(), + 'domain': domain, } return render(request, 'public/index.html', context) |