def django_api(<EOL>self,<EOL>name,<EOL>introduced_at,<EOL>undocumented=False,<EOL>deprecated_at=None,<EOL>title=None,<EOL>**options):
from acceptable.djangoutil import DjangoAPI<EOL>location = get_callsite_location()<EOL>api = DjangoAPI(<EOL>self,<EOL>name,<EOL>introduced_at,<EOL>options,<EOL>location=location,<EOL>undocumented=undocumented,<EOL>deprecated_at=deprecated_at,<EOL>title=title,<EOL>)<EOL>self.metadata.register_api(self.name, self.group, api)<EOL>return api<EOL>
Add a django API handler to the service.

        :param name: This is the name of the django url to use.

        The 'methods' paramater can be supplied as normal, you can also user
        the @api.handler decorator to link this API to its handler.