When you leave the port you can see the Medina right in front of you. If you dock at the normal spot you take a left to find the entrance to the Medina from where you can also take this picture.
At the entrance of the Medina you will find information signs like this. Why not spend a moment or 2 looking at it to decipher the Medina. Remember: up is the the Kasbak, down is the the exit.