Given
siteInfo = \
{
'appname3': 'MSQuantDynamics11',
'siteBase': 'http://www.pil.sdu.dk/1',
}
in a "urls.py" file.
This works as expected:
urlpatterns = patterns('',
(r'^$', direct_to_template, \
{ \
'template' : "homepage.html", \
'extra_context': { 'siteInfo': siteInfo }, \
}
),
)
Why does it not work with the following? (the result of "{{ siteInfo.appname3 }}" in homepage.html becomes emtpy):
urlpatterns = patterns('',
(r'^$', direct_to_template, \
{ \
'template' : "homepage.html", \
'extra_context': siteInfo, \
}
),
)
Would it work if "siteInfo.appname3" was changed to something else?