Thanks, this is what I am looking for, where can I locate this django-debug-toolbar? Do i need to add it like it is stated in the git hub? or is there a UI which i can use?
Thanks,
Smaran
--
Thanks & Regards
-- On Thu, Jun 28, 2012 at 2:38 PM, CLIFFORD ILKAY <clifford_ilkay@dinamis.com> wrote:
Hi Smaran,On 06/27/2012 08:55 PM, Smaran Harihar wrote:
Hi Guys,
I am new to Django and have completed the initial basic tutorials in the django doc. I am presently working on a pre-customized django application. I was wondering how I can use FireBug to locate the code in a specific element (like button). In the sense, in general the web development once we are able to locate the button we are able to then locate the class of the specific element and JS attached to it and CSS. But in Django this cannot be done since everything is located in separate directories.
Since I am entering into the Django code, where should I start looking for the CSS and JS files?
You can install django-debug-toolbar. That will tell you which templates are used to render a given page. You'll also see the whole template inheritance hierarchy. Knowing the URL and those two bits of information, you'll be able to mentally trace a request as it's handled by urls.py, dispatched to a view function, which in turn feeds a template. You can work forward from the URL or backward from the template.
--
Regards,
Clifford Ilkay
Dinamis
1419-3230 Yonge St.
Toronto, ON
Canada M4N 3P6
<http://dinamis.com>
+1 416-410-3326
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Thanks & Regards
Smaran Harihar
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment