[Fixed]-Android access django rest framework makes HTTP 500

1👍

If I am not wrong, the message in console just says Http 500 Server error without the cause right?

To debug it more, add following to your settings(base.py)

LOGGING = {
 'version': 1,
 'disable_existing_loggers': False,
 'handlers': {
   'console': {
     'level': 'ERROR',
     'class': 'logging.StreamHandler',
     'stream': sys.stderr
   },
  },
 'loggers': {
   'django.request': {
     'handlers': ['console'],
     'propogate': True,
     'level': 'ERROR',
   }
 }
}

This few lines in your settings will print the cause of 500 error in the console, you might get clue to what you are doing wrong.

Leave a comment