-1

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!

Ruben
  • 23
  • 2

1 Answers1

0

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