Making get_configvalue a bit more informative if a config value can't be found. Also actually populating the webcontext's game_name via get_configvalue.

This commit is contained in:
Greg Taylor 2007-06-06 12:37:34 +00:00
parent f68e686fd9
commit 270db06820
2 changed files with 10 additions and 3 deletions

View file

@ -1,10 +1,11 @@
from django.conf import settings
import gameconf
def general_context(request):
"""
Returns common Evennia-related context stuff.
"""
return {
'game_name': "Test Game",
'game_name': gameconf.get_configvalue('site_name'),
'media_url': settings.MEDIA_URL,
}