Update project to use Django 1.7.7. Issue #33
This commit is contained in:
20
mayan/apps/rest_api/apps.py
Normal file
20
mayan/apps/rest_api/apps.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django import apps
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from project_tools.api import register_tool
|
||||
|
||||
from .classes import APIEndPoint
|
||||
from .links import link_api, link_api_documentation
|
||||
|
||||
|
||||
class RESTAPIApp(apps.AppConfig):
|
||||
name = 'rest_api'
|
||||
verbose_name = _('REST API')
|
||||
|
||||
def ready(self):
|
||||
APIEndPoint('rest_api')
|
||||
|
||||
register_tool(link_api)
|
||||
register_tool(link_api_documentation)
|
||||
Reference in New Issue
Block a user