Is it possible to create a html file that can be loaded from jQuery using whatever mechanism ($.load, $.get, etc) without having the html loaded through the django url->view->template framework.
I’d like to have a file – test.html which has some jQuery that loads some html from test_popup.html and appends the html to a div on test.html.
But, I don’t want to create url in django for accessing the test_popup.html page.
Is there a way to do this?
If it’s a static html file, then put it in your static files directory.
Then load you can load the url e.g.
/static/test_html.htmlwith jQuery without adding any further url patterns.If you need further help, refer to the docs on managing static files.