2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 01:36:29 +00:00

JSON api for stock items

This commit is contained in:
Oliver
2018-04-29 21:02:40 +10:00
parent 9cc0780367
commit f74e176579
4 changed files with 64 additions and 53 deletions

View File

@@ -89,12 +89,10 @@ TEMPLATES = [
},
]
print(os.path.join(BASE_DIR, 'templates'))
REST_FRAMEWORK = {
'EXCEPTION_HANDLER': 'InvenTree.utils.api_exception_handler',
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 50,
# 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
# 'PAGE_SIZE': 50,
}
WSGI_APPLICATION = 'InvenTree.wsgi.application'