I want by default see all def run without any customizing code
example
[date] settings.py
[date] url.py
[date] /apps/views/views.py run index def
[date] ...
is there any middle were or something do this job?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a tough one. First of all, logging every function (proper term for “def”) would probably a bad idea and unnecessary. You might want to look at the python trace module.
If you are just trying to debug what’s happening in a Django app and want to do so with a middleware, look no further than the awesome django-debug-toolbar.
If you want to log Django activity (which is probably what you are asking for), the django-logging-middleware is perfect for this case.