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:
parent
f68e686fd9
commit
270db06820
2 changed files with 10 additions and 3 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue