Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Private static files
#1
Question 
Hi everyone,

I would like that certain files be only available to logged/authorized persons.

So not in the /static folder that is available for everyone.

Plz do not forward me to tutorial that explain how to do it with Flask-Login because I'm using my method of authentication.


Maybe the simplest way to do it it's to create another folder /static_private and make it work almost as the static one but for logged user only ?

But I have no idea how to achieve that.

Thanks
[Image: NfRQr9R.jpg]
Reply
#2
I succeed Big Grin It was not easy.

If you encounter the same problem, feel free to reach me and I will help.

Cheers,
[Image: NfRQr9R.jpg]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask, Display a picture outisde the static SpongeB0B 6 15,562 Aug-29-2020, 05:15 PM
Last Post: nilamo
  Sending How to send private message with Flask-Socketio and Vue jonte 0 4,492 Jul-28-2020, 08:14 PM
Last Post: jonte
  SHow image in a static link of Django pycada 3 2,573 Mar-04-2020, 01:50 AM
Last Post: pycada
  Django loading static files Dutchpy 7 23,981 Oct-13-2017, 10:25 AM
Last Post: hbknjr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020