Incorrectly formatted url giving Django error.