Enable token authentication for the API, add API token request view

This commit is contained in:
Roberto Rosario
2014-07-24 01:03:51 -04:00
parent 8807c52ac3
commit 3c4ddecf80
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
from __future__ import absolute_import
from django.utils.translation import ugettext_lazy as _
from .classes import APIEndPoint
from .urls import api_urls
endpoint = APIEndPoint('rest_api')
endpoint.register_urls(api_urls)
endpoint.add_endpoint('auth_token_obtain', _(u'Obtain an API authentication token.'))