Forums

skip the password protection for some static file

I'm working on my project. I have set up "Password Protection" on the Web Application page. I'm testing some mail sending and I'm creating an HTML mail that needs access to some CSS and IMG files stored in the static folder of my project. Unfortunately, when the mail tries to read the sources from my static folder, pythonanywhere asks for the username and the password defined in "Password Protection". How can I avoid it?

Our built-in password protection is an all-or-nothing thing, unfortunately. If you want to have only certain parts of your website password-protection, you'll need to implement that in your code. Most web frameworks have features to make that reasonably easy to do.