|
|
__init__(self,
enforce_csrf_checks=False,
**defaults)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
_handle_redirects(self,
response,
**extra)
Follows any redirects by requesting responses from the server using GET. |
|
|
|
|
_session(self)
Obtains the current session variables. |
|
|
|
|
delete(self,
path,
data=u'',
content_type=u'application/octet-stream',
follow=False,
**extra)
Send a DELETE request to the server. |
|
|
|
|
get(self,
path,
data={},
follow=False,
**extra)
Requests a response from the server using GET. |
|
|
|
|
head(self,
path,
data={},
follow=False,
**extra)
Request a response from the server using HEAD. |
|
|
|
|
login(self,
**credentials)
Sets the Factory to appear as if it has successfully logged into a site. |
|
|
|
|
logout(self)
Removes the authenticated user's cookies and session object. |
|
|
|
|
options(self,
path,
data=u'',
content_type=u'application/octet-stream',
follow=False,
**extra)
Request a response from the server using OPTIONS. |
|
|
|
|
post(self,
path,
data={},
content_type=u'multipart/form-data; boundary=BoUnDaRyStRiNg',
follow=False,
**extra)
Requests a response from the server using POST. |
|
|
|
|
put(self,
path,
data=u'',
content_type=u'application/octet-stream',
follow=False,
**extra)
Send a resource to the server using PUT. |
|
|
|
|
request(self,
**request)
The master request method. |
|
|
|
|
store_exc_info(self,
**kwargs)
Stores exceptions when they are generated by a view. |
|
|
|
Inherited from RequestFactory:
generic
Inherited from RequestFactory (private):
_base_environ,
_encode_data,
_get_path
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|