Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.335.085 Times

django-debug-toolbar 0.9.1

Company: Rob Hudson
Date Added: November 25, 2013  |  Visits: 645

django-debug-toolbar

Report Broken Link
Printer Friendly Version


Product Homepage
Download (42 downloads)



jango-debug-toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel's content.<br /><br />Currently, the following panels have been written and are working:<br /><br /> * Django version<br /> * Request timer<br /> * A list of settings in settings.py<br /> * Common HTTP headers<br /> * GET/POST/cookie/session variable display<br /> * Templates and context used, and their template paths<br /> * SQL queries including time to execute and links to EXPLAIN each query<br /> * Logging output via Python's built-in logging module<br /><br />If you have ideas for other panels please let us know.<br /><br />Installation<br /><br />1. Add the debug_toolbar directory to your Python path.<br /><br />2. Add the following middleware to your project's settings.py file:<br /><br /> 'debug_toolbar.middleware.DebugToolbarMiddleware',<br /><br />Tying into middleware allows each panel to be instantiated on request and rendering to happen on response.<br /><br />The order of MIDDLEWARE_CLASSES is important: the Debug Toolbar middleware must come after any other middleware that encodes the response's content (such as GZipMiddleware).<br /><br /> Note: The debug toolbar will only display itself if the mimetype of the response is either text/html or application/xhtml+xml and contains a closing tag.<br /><br />3. Make sure your IP is listed in the INTERNAL_IPS setting. If you are working locally this will be:<br /><br /> INTERNAL_IPS = ('127.0.0.1',)<br /><br />Note: This is required because of the built-in requirements of the show_toolbar method. See below for how to define a method to determine your own logic for displaying the toolbar.<br /><br />4. Add debug_toolbar to your INSTALLED_APPS setting so Django can find the template files associated with the Debug Toolbar.<br /><br /> Alternatively, add the path to the debug toolbar templates ('path/to/debug_toolbar/templates' to your TEMPLATE_DIRS setting.)<br /><br />Configuration<br /><br />The debug toolbar has two settings that can be set in settings.py:<br /><br />1. Optional: Add a tuple called DEBUG_TOOLBAR_PANELS to your settings.py file that specifies the full Python path to the panel that you want included in the Toolbar. This setting looks very much like the MIDDLEWARE_CLASSES setting. For example:<br /><br /> DEBUG_TOOLBAR_PANELS = (<br /> 'debug_toolbar.panels.version.VersionDebugPanel',<br /> 'debug_toolbar.panels.timer.TimerDebugPanel',<br /> 'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',<br /> 'debug_toolbar.panels.headers.HeaderDebugPanel',<br /> 'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',<br /> 'debug_toolbar.panels.template.TemplateDebugPanel',<br /> 'debug_toolbar.panels.sql.SQLDebugPanel',<br /> 'debug_toolbar.panels.logger.LoggingPanel',<br /> )<br /><br /> You can change the ordering of this tuple to customize the order of the panels you want to display, or add/remove panels. If you have custom panels you can include them in this way -- just provide the full Python path to your panel.<br /><br />2. Optional: There are a few configuration options to the debug toolbar that can be placed in a dictionary:<br /> * INTERCEPT_REDIRECTS: If set to True (default), the debug toolbar will show an intermediate page upon redirect so you can view any debug information prior to redirecting. This page will provide a link to the redirect destination you can follow when ready. If set to False, redirects will proceed as normal.<br /> * SHOW_TOOLBAR_CALLBACK: If not set or set to None, the debug_toolbar middleware will use its built-in show_toolbar method for determining whether the toolbar should show or not. The default checks are that DEBUG must be set to True and the IP of the request must be in INTERNAL_IPS. You can provide your own method for displaying the toolbar which contains your custom logic. This method should return True or False.<br /><br /> Example configuration:<br /><br /> def custom_show_toolbar(request):<br /> return True # Always show toolbar, for example purposes only.<br /><br /> DEBUG_TOOLBAR_CONFIG = {<br /> 'INTERCEPT_REDIRECTS': False,<br /> 'SHOW_TOOLBAR_CALLBACK': custom_show_toolbar,<br /> }<br /><br /><br />#md5=d40d7d462172e41bbfdc69f0182bd91b

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Builtin Configuration Debug Debug Toolbar Debug Toolbar Panels Display False Internal Ips Method Middleware Panels Provide Python Setting Settingspy Toolbar Tuple
Users rating: 0/10

License: Freeware Size: 143.36 KB
USER REVIEWS
More Reviews or Write Review


DJANGO-DEBUG-TOOLBAR RELATED
Programming  -  python-bidi 0.3.1
python-bidi is a bi-directional layout implementation in pure Python. API The algorithm starts with a single entry point bidi.algorithm.get_display. Required arguments: * unicode_or_str: The orginal...
30.72 KB  
Libraries  -  POE::Component::DebugShell 1.0411
POE::Component::DebugShell is a component to allow interactive peeking into a running POE application. SYNOPSIS use POE::Component::DebugShell; POE::Component::DebugShell->spawn(); This component allows for interactive peeking into a...
7.17 KB  
Desktop Utilities  -  MailDooHicky 1.9.58
mdh (MailDooHicky) v1.9.58 is a GTK2-based toolbar that can display the time, email message count and various system (CPU, network, etc.) utilization. It also features user-definable buttons, a run window and scratch-pad. GTK theme used in...
225.28 KB  
Programming  -  VelocityWeb b.1.3
J2EE framework with 0-configuration.debug/unit test without J2EE server,using Velocity/Freemarker as view,directly JDBC with Apache DBUtils,reusable SQL pagination, SQL transaction based on TRANSACTION_PER_REQUEST,And URL based user access...
2.33 MB  
Specialized Tools  -  django-logdb for linux 0.9.9
django-logdb has a custom logging handler that writes log entries in a database. It therefore integrates nicely with your existing logging configuration and you can decide what log entries are written to the database. The Django admin...
71.68 KB  
Network & Internet  -  Inquiry Bar 1.0.4
Inquiry bar was created to allow fast access to frequent queries in websites and applications. An example is a corporate web-based phone directory. Rather than using a bookmark to go to the phone directory page and then enter your search - with...
10.24 KB  
Network & Internet  -  PyWork 0.4.8
PyWork is a high performance Python Web framework. The author has been developing web applications for years. In this journey several tools and well known languages where used before meeting Python. I am not going to explain all the great things...
266.24 KB  
Libraries  -  XML::Parser 2.34
XML::Parser is a perl module for parsing XML documents. SYNOPSIS use XML::Parser; $p1 = new XML::Parser(Style => Debug); $p1->parsefile(REC-xml-19980210.xml); $p1->parse( Hello World ); # Alternative $p2 = new XML::Parser(Handlers...
225.28 KB  
Web Browser Tools  -  Operator 0.7 for Firefox
Operator is a Firefox extension that lets you combine information on Web sites with applications in ways that are useful. For instance, Flickr + Google Maps, Upcoming.org + Google Calendar, Yahoo! Local + your address book, and many more...
60.42 KB  
Utilities  -  zeppoo-dump 0.0.4
zeppoo-dump is a tool to explore the Linux kernel through /dev/(k)mem. It can debug memory and display it in opcode format. zeppoo-dump can also write opcodes in the memory. Only the i386 and x86_64 architectures are supported. Whats New in This...
4.1 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, WEB AUTHORING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Web Authoring  -  django-compass 0.1
django-compass is a Django app that offers simple compilation of Compass projects. #md5=f8c46f23a0329cb77da8e35c14e3c54c
10.24 KB  
Web Authoring  -  El Cid 0.2
El Cid is a cheezy little caller id program for Linux. Running as a background process, El Cid writes output into a comma seperated variable file. This is then parsed by other utilities such as elcgi.pl, which generates pages for viewing via the web.
51.2 KB  
Web Authoring  -  supercaptcha 0.1.1
supercaptcha is a Django plugin that adds a captcha field for the new forms. Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. md5=7b1d933dbeeecc6f36c6c0c9cf3e71b2
10.24 KB  
Web Authoring  -  Camera Life 2.6.4 Beta 1
Camera Life is PHP software you can run to show your photos on your own website. Camera Life is easy to setup and customize if want to blend it in with the rest of your site. The two big features are: great photo organization, and a...
3.64 MB  
Web Authoring  -  Andy's PHP Knowledgebase for Linux 0.95.7
Andy's PHP Knowledgebase using MySQL is a database driven knowledgebase management system. It includes bookmark friendly URLs, Q&A, easy search with browsing by article tags, article submission, a powerful administrator interface and a...
71.68 KB