django-devserver
django-devserver copied to clipboard
MemoryUseModule interferes with page load
When this is turned on, some of my sites pages never finish loading: this includes some admin pages.
It seems like it may be related to loading up some javascript files, perhaps /admin/jsi18n/, as that is the last request that was sent before the freeze: the next one to load is /media/admin/media/js/core.js.
What kind of page is failing? Can you disable the module and see what is loaded after that core.js in requests?
An admin change page (not a list page).
When I disable the module, the following pages are loaded after where the freeze is:
127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /admin/jsi18n/ HTTP/1.1" 200 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/css/forms.css HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/getElementsBySelector.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/actions.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/calendar.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/admin/DateTimeShortcuts.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/SelectBox.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/css/widgets.css HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:31] "GET /media/admin/media/js/SelectFilter2.js HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/nav-bg-reverse.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/default-bg.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/nav-bg.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/icon_deletelink.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/tool-right.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/tool-left.gif HTTP/1.1" 304 - 127.0.0.1 - - [11/Feb/2010 14:15:32] "GET /media/admin/media/img/admin/icon_addlink.gif HTTP/1.1" 304 -
I haven't tried with a brand new project and a simple app with an admin yet.
Okay, it appears with the simplest project I could possibly make.
Is there any way I can attach a zip file of the project?
That's odd you shouldn't even see the /admin/media calls. Do you happen to know why those are all 304s?
You can upload a small zip file via pastethat.com and link it here, but I know no direct way to attach files.
The test project I created can be found at http://www.pastethat.com/test-project-i6
The username/password is user/user.
As for the 304s: they appear with the new project as well. Appears to be the result of a conditional GET, but not sure why, since I don't have the conditional middleware on...
I am seeing similar behaviour - a page with an AJAX call hangs until I kill the server, then the call finishes successfully and the result is displayed. If I disable the MemoryUseModule, the result loads immediately.
It seems to pause somewhere in jQuery, but I'm not sure how to trace it any better.
Hmm. I seem to see issues when a redirect is supposed to happen. Safari just sits there, and no request appears to be made.
I'm getting similar hanging issues with Ajax calls.