Commit 427cfdc 1 parent 76481ad commit 427cfdc Copy full SHA for 427cfdc
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ def react(request):
97
97
via the 'context' variable used for the view's template.
98
98
"""
99
99
100
+ # ----
101
+ # NOTE: If you add or remove any context keys here
102
+ # ---- you MUST update the template that gets rendered
103
+ # (viewer/react_temp.html) so that is matches
104
+ # the keys you are creating and passing here.
105
+
100
106
# Start building the context that will be passed to the template
101
107
context = {'legacy_url' : settings .LEGACY_URL }
102
108
@@ -133,7 +139,9 @@ def react(request):
133
139
134
140
context ['target_warning_message' ] = settings .TARGET_WARNING_MESSAGE
135
141
136
- return render (request , "viewer/react_temp.html" , context )
142
+ render_template = "viewer/react_temp.html"
143
+ logger .info ("Rendering %s with context=%s..." , render_template , context )
144
+ return render (request , render_template , context )
137
145
138
146
139
147
# --------------------
You can’t perform that action at this time.
0 commit comments