Created
November 10, 2010 16:30
-
-
Save crccheck/671077 to your computer and use it in GitHub Desktop.
Use Django Test Client to curl a url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.test.client import Client | |
def render_url(url): | |
c = Client() | |
return c.get(url).content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment