python - to display xml file through html page by hyperlinking it -


i have created app in django searches word entered user in 10 xml documents. enters word, results directed page contains list + graphical charts represent frequency of words each xml file.

my html code:

<body bgcolor = #9acd32"> <ul> {% l in list1 %} <li> {<a href="/home/pooja/desktop/{{l.file_name}}/">{l.file_name}}, {{l.frequency_count}}</li> {% endfor %} </ul> </body> 

one can see i'm hyperlinking the xml file. when click on link, not getting displayed. basically, want list getting displayed has hyperlinks of xml files , when user clicks on can see file's contents. how can ?i'm new xml files , django,. so,

please help.

you need upload said file webserver , link file.. eg

/www/folder/{{l.file.name}}/">

you're calling locally


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -