You'll almost always apply for student finance before you will for your accommodation.
However, In most cases ir unlikely to have the decision before you have to secure your accommodation so it's best to at least have some sort of idea how much you'll be entitled to, which is pretty easy to work out, when securing your room/flat.