ForestAdmin/django-forest

View on GitHub
django_forest/__init__.py

Summary

Maintainability
A
0 mins
Test Coverage
F
36%
from django_forest.utils.cors import set_cors
from django_forest.utils.middlewares import set_middlewares
from django_forest.utils.schema import Schema


def init_forest():
    set_cors()
    set_middlewares()

    # schema
    Schema.build_schema()
    Schema.add_smart_features()
    Schema.handle_json_api_schema()
    Schema.handle_schema_file()
    Schema.send_apimap()