python - Make Django not lazy-load module, for development convenience -
i notice django lazy-loads modules used in project. when first run server in debug on local machine, , load page site, debugger tells me django imported more hundred modules.
i'd django import modules when it's launched, , not wait first request. make development more convenient, since won't have wait more time on each first request.
is possible?
it looks library: https://github.com/ojii/django-load, simple, has function load module within django. if combine technique django entry point hook (like http://eldarion.com/blog/2013/02/14/entry-point-hook-django-projects/), should able explicitly load modules @ startup. (i did not try myself, looks feasible.)
Comments
Post a Comment