api_settings.py 969 B

1234567891011121314151617181920212223242526272829
  1. REST_FRAMEWORK = {
  2. # Use Django's standard `django.contrib.auth` permissions,
  3. # or allow read-only access for unauthenticated users.
  4. 'DEFAULT_RENDERER_CLASSES':[
  5. 'rest_framework.renderers.JSONRenderer',
  6. 'rest_framework.renderers.BrowsableAPIRenderer',
  7. ],
  8. 'DEFAULT_PERMISSION_CLASSES': [
  9. #'rest_framework.permissions.AllowAny',
  10. #'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
  11. ],
  12. 'DEFAULT_AUTHENTICATION_CLASSES': (
  13. 'rest_framework.authentication.TokenAuthentication',
  14. 'rest_framework.authentication.BasicAuthentication',
  15. 'rest_framework.authentication.SessionAuthentication',
  16. ),
  17. }
  18. SPAGHETTI_SAUCE = {
  19. 'apps': ['auth', 'SharixAdmin',
  20. 'tickets', 'admin',
  21. 'flatpages', 'sessions', 'sites', 'metaservicesynced'],
  22. 'show_fields': False,
  23. 'show_proxy':True,
  24. }
  25. GRAPH_MODELS = {
  26. 'all_applications': True,
  27. 'group_models': True,
  28. }