[Answer]-Django development server hangs with firefox and chrome

1👍

I have been using tastypie in my django project. That works very smoothly, I didn’t have such issue.
To debug this first make sure where the problem is. Does the request reach server, does database query take too much time, does database connection break and like that to know whether database causing problem or your django code or tastypie or ajax calls.

Development server log, I suppose you know already. paste it’s output here so that we can get more understanding.

To check mysql log : follow How to see log files in MySQL?

You are using browser to call these api then install django-debug-toolbar, it will fetch some info. try curl also instead of browser :

curl http://127.0.0.1:8000/api/v1/account/?user_id=1

Also see this.
http://django-tastypie.readthedocs.org/en/latest/debugging.html

P.S: I can’t comment as I have low reputation as of now.

Leave a comment