Part of the Apache configuration defines some environment variables that Flask looks at. Like this:
WSGIScriptAlias /cs304people
/home/cs304flask/wsgi-solution3/people_app/app.wsgi
process-group=cs304people
We'll look at the People app code next time, but here's a link: people app
Great question! If multiple routes point to the same thing, that typically means the endpoint is parameterized, in which case, we have to supply the value of the parameter:
If it's even more ambiguous, then you'll have to intervene. In the worst case, you might have to supply the prefix.
Sure! We just did that in the lecture notes, using a static CSS file.
Another example would be a logo image. So we might have a template like:
Then, we put the file of CSS code and the logo file into
the static folder in our app folder.
For sure!