def django_url(step, url=None):
base_url = step.test.live_server_url<EOL>if url:<EOL><INDENT>return urljoin(base_url, url)<EOL><DEDENT>else:<EOL><INDENT>return base_url<EOL><DEDENT>
The URL for a page from the test server.

:param step: A Gherkin step
:param url: If specified, the relative URL to append.