Skip to content

Commit

Permalink
Added SITE_NAME context processor
Browse files Browse the repository at this point in the history
  • Loading branch information
dedy-purwanto committed Jul 25, 2012
1 parent 5cc6e90 commit 1beb3f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ubgc/apps/cores/context_processors.py
@@ -0,0 +1,7 @@
from django.contrib.sites.models import Site

def common(request):
current_site = Site.objects.get_current()
return {
'SITE_NAME': current_site.name,
}

0 comments on commit 1beb3f2

Please sign in to comment.