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

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

Serving Software Downloads in 976 Categories, Downloaded 29.546.140 Times

django-debug-toolbar 0.9.1

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


Report Broken Link
Printer Friendly Version

Product Homepage
Download (18 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<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 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 = ('',)<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<br /><br />1. Optional: Add a tuple called DEBUG_TOOLBAR_PANELS to your 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
More Reviews or Write Review

Programming  -  Coded Debug Print 0.2
Codes debug print statements to reduce size of debug builds, hides debug information from 3rd party people and decreases the effect of longer print lines by printing minimum number of characters to console.
3.48 KB  
Web Browser Tools  -  Bad Credit Loans 1.0
Internet Explorer Toolbar to help find low rate bad credit loans for UK homeowners and tenants. The toolbar also contains RSS feeds from key UK loan websites. Easily find low rate bad credit loans if you have Arrears, CCJ's or Defaults. Bad...
1.04 MB  
Networking  -  ThickBox Content 1.0.1
This plugin adds a button to the text editor's toolbar and allows to display your content in a thickbox effect. The plugin can include any inline content, iFramed or Ajax content located on other pages.
10 KB  
Libraries  -  Debug::Message 1.00
Debug::Message is a Perl module that eases the use of debug print with level, indentation and color. SYNOPSIS use Debug::Message; use Log::Dispatch; use Log::Dispatch::Screen; my $dispatcher = Log::Dispatch->new; $dispatcher->add(...
4.1 KB  
Web Browser Tools  -  Xdebug Helper 0.1
Xdebug Helper is a tool to start/stop debug with PHPs Xdebug extension. The Xdebug extension helps you debugging your script by providing a lot of valuable debug information. The debug information that Xdebug can provide includes the following:...
9.22 KB  
Bug Trackers  -  Xdebug 2.0.0
Xdebug project is an extension that helps you debugging your script by providing a lot of valuable debug information. The debug information that Xdebug can provide includes the following: - stack and function traces in error messages with: -...
266.24 KB  
Modules  -  Debug Help for Osc 1.0
when you have some problem with osc, the first need you have is to display value of a data or array...with this package, just add echo viewarray($myarray);to show a small iconit will display the value in a popup screen when you click debug display...
Programming  -  Debug::Simple 0.10
Debug::Simple is a Perl module which provides a very simple way to provide debug/verbose/warning messages. It is also trivially controlled via Getopt::Long. The idea is to be able to put a bunch of debugging print statements throughout...
10.24 KB  
Web Browser Tools  -  Digg This Toolbar 0.1b
Digg This Toolbar provides a simple toolbar buttons and a menu to allow you to quickly digg articles. The Digg This! toolbar adds two buttons to your main Firefox toolbar and one menu. With the toolbar buttons you can quickly goto to Digg or...
28.67 KB  
Web Browser Plug-ins  -  4shared Toolbar
4shared toolbar gives instant access to 4shared Desktop, 4shared home page and personal 4shared account. 4shared toolbar gives instant access to 4shared Desktop, 4shared home page and personal 4shared account. With our toolbar you can get...
3.77 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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
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  -  APRS World 0.1
APRS World is comprised of an Automatic Packet Reporting System (APRS) parser and a web interface. The parser connects to an APRS feed and inserts packets into a MySQL database. The web interface provides a convenient means of retrieving this...
20.48 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, 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  -  DokuWiki Wiki JumpBox 1.1.1
DokuWiki is a simple, clean and easy to use wiki system that allows collaborative editing of a web site. It's focused on creating documentation for developer teams, workgroups and small companies. DokuWiki Wiki JumpBox bundles DokuWiki version...
150.41 MB