Skip to content
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

bookmarklet_launcher.js - TemplateDoesNotExist #15

Open
rahul4200 opened this issue May 14, 2024 · 0 comments
Open

bookmarklet_launcher.js - TemplateDoesNotExist #15

rahul4200 opened this issue May 14, 2024 · 0 comments

Comments

@rahul4200
Copy link

rahul4200 commented May 14, 2024

In the dashboard.html file which is inside bookmarks/account/templates/account/dashboard.html has the below paragraph:

<p>Drag the following button to your bookmarks toolbar to bookmark images from other websites → <a href="javascript:{% include "bookmarklet_launcher.js" %}" class="button">Bookmark it</a></p>

But this bookmarklet_launcher.js file is inside another django app - bookmarks/images/templates/bookmarklet_launcher.js.

When I run my Django app, I get the below error:

TemplateDoesNotExist
django.template.exceptions.TemplateDoesNotExist: bookmarklet_launcher.js

And I understand why this is happening. As how can I refer to a template that is not even in the same application. Plus, this is a .js file and not an html template, yet we have done a include template tag.

I am confused and have no idea, how to move forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant