In Django, I have a file foo.txt in my static folder, which can be accessed through www.example.com/static/foo.txt. How would it be possible to access this file by simple doing www.example.com/foo.txt? (without redirections)
thanks in advance!
In Django, I have a file foo.txt in my static folder, which can be accessed through www.example.com/static/foo.txt. How would it be possible to access this file by simple doing www.example.com/foo.txt? (without redirections)
thanks in advance!
I think Selcuk is right, save your file on the server directories, or static files, then simple point the url there
<a href="/static/files/foo.txt">Foo Text File</a>
Watch your file permissions though