2👍
Ignore all the JavaScript. The key line in your problem is:
[30/Jul/2013 02:50:51] "GET /visualize/static/js/test.js HTTP/1.1" 404 2732
404 is the HTTP code for ‘file not found’, which means that you’re using the incorrect path to reference your JavaScript file. Fix that, and you may find that your solution then works – or, if not, at least breaks differently.
0👍
@Adrian is right about the error message, but I suspect that the problem you’re thinking of is caused by not putting quotes around {{name}}
in test.html. Try:
<script type="text/javascript">
var name='{{name}}';
</script>
- [Answered ]-Redirect to home as a logged in user after successful registration
- [Answered ]-Django calculate object position in the list
- [Answered ]-Django GenericForeignKey limit to ContentTypes that inherit from a particular abstract model
Source:stackexchange.com