1

In flask, flash messages are stored in the session cookie. The first thing that login does is session.clear(), which destroys the cookie, and with it, the message. I would never recommend removing the session.clear() for any number of reasons (it's in the supplied code, it could be a security hole, it might not pass check50). Notice how the staff solution ...


1

I went with a change in /etc/apache2/sites-available Works good thanks! Here is some shortcuts for future reference. pi@raspberrypi2 /etc/apache2/sites-available $ apache2 default Usage: apache2 [-D name] [-d directory] [-f file] [-C "directive"] [-c "directive"] [-k start|restart|graceful|graceful-stop|stop] [-...


1

NEW ADVICE: This tutorial should help you to change the DocumentRoot of your website by using Apache2 Virtual Hosts. The focus of the tutorial is on how to host more than one domain or subdomain on the same Raspberry Pi server, but it should also work just to move your DocumentRoot to something like this: DocumentRoot /var/www/pset7/public/ OLD ADVICE: ...


1

One problem is int pathend = strcspn(abpathstart, lastspace) + 1;. strcspn doesn't work the way you think it does (or wish it did!). From the man page (emphasis added): The strcspn() function calculates the length of the initial segment of s which consists entirely of bytes not in reject. strcspn is returning 0, so your pathend is 1. Why, you may ...


Only top voted, non community-wiki answers of a minimum length are eligible