python - access a file with a specific link in django -


in django, have file foo.txt in static folder, can accessed through www.example.com/static/foo.txt. how possible access file simple doing www.example.com/foo.txt? (without redirections)

thanks in advance!

i think selcuk right, save file on server directories, or static files, simple point url there

<a href="/static/files/foo.txt">foo text file</a> 

watch file permissions though


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -