redtensor22

Results 9 comments of redtensor22

Thank you very much for your reply. When I change to: ` context = "{'target_id': {'value': %s}}" % pk return render(request, 'model_results.html', {'context':context})` in my view and in my template:...

Appreciate it; unfortunately it gives the same error. I tried several different iterations of this, including: ``` context = '{"target_id": {"value": %s}}' % pk context = ast.literal_eval(context) return render(request, 'model_results.html',...

update: i tried to make it even more simple, with this: `return render(request, 'model_results.html', {"context":{"target_id": 67}})` which still gives me the same error. are you sure in the template tag...

No error, but nothing is displayed in the Dash app. At this point, if I could just get the simple '67' to appear on the screen of the Dash app...

yes i am; i can get the app to run by changing some of the input information. for example, this app runs perfectly within my Django application: ``` app.layout =...

The app is being rendered; for example, if I change the input type from hidden and type something into the textbox it does appear below. what do you mean by...

could you give me a simple example of an app that should be able to pick up the context from the template and display a number? like, if the view...

I'm having trouble with the actual app, and getting the variable. I'm using the above as provided and dont get any errors, but nothing appears in the dashboard ``` {%plotly_app...

for anyone reading in the future, I was able to get this to work using some different code: `{%plotly_app name="tutorial_1" initial_arguments='{"dropdown-color": {"value": "red"}}' %}` ``` app = DjangoDash('tutorial_1') app.layout =...