-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing an object #1
Comments
Sorry, I don't understand the question. Please provide sample code or some examples of what you want and why the current implementation isn't sufficient. |
Hi, Apologies for the confusion. In this example: I would like to replace 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' with {{ object.url }} which is coming from a view. I hope this makes sense. |
Does the django |
No, the url variable is being rendered by a view. |
I'm not following how this would be a problem, you could set that context variable before the YouTube tag. |
Thank you for getting back to me so quickly. I tried it but it crashes.... |
Sorry, I don't have any ideas then with such limited context. I recommend figuring out how to pass context variables around in templates from a view. |
Ok thanks. Though I am passing context variables to the template all fine. The thing is that the app doesn't seem to recognise the variable and it only works with the actual url string. Thank you for the patience! |
Hi,
Is there a way I can pass a variable such as {{ object.url }} instead on the url string?
The text was updated successfully, but these errors were encountered: