fwiw, my understanding is that "students only" would be age discrimination, under the human rights code.
of course, if you go to any city anywhere, there are ads for student housing. and, there are some caveats.
as with gender and religion, you can largely put these conditions down in rooming houses. you can have a girls only student house. you can even have a muslim only student house.
but, you can't have a girls only apartment building, or a muslims-only subdivision, or a student only housing unit.
i don't want to live in a rooming house, but there are some apartments that are being advertised as student only. this is something i'll take a closer look at in the upcoming weeks, as the units fill up.