Giter Club home page Giter Club logo

chrome-django-panel's People

Contributors

recamshak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chrome-django-panel's Issues

Blank django debug

I found out that my Django Debug tab is empty all the time. It appears that chrome changed the headers name case and all starts from lower case letter (x-debug-data-url instead of X-debug-data-url). Fixing condition in panel.js:50 should resolve this issue.

Empty tab with DjDT 1.2.1

I've followed the docs to install both django-debug-panel and chrome-django-panel, which displays the list of AJAX requests. When I'm clicking at one of the request names, it calling URL like "/debug/data/1411685349.309285/", but the tab stays blank. DjDT returns following reply, with hidden HTML in it:

<style type="text/css">
@media print { #djDebug {display:none;}}
</style>
<link rel="stylesheet" href="/site_media/debug_toolbar/css/toolbar.css" type="text/css" />

<!-- Prevent our copy of jQuery from registering as an AMD module on sites that use RequireJS. -->
<script>var _djdt_define_backup = window.define; window.define = undefined;</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script>var djdt = {jQuery: jQuery.noConflict(true)}; window.define = _djdt_define_backup;</script>

<script src="/site_media/debug_toolbar/js/toolbar.js"></script>
<div id="djDebug" style="display:none;" dir="ltr"
     data-store-id="f2a972abf34f48efa45a0cce71ac1214" data-render-panel-url="/__debug__/render_panel/"
     >
    <div style="display:none;" id="djDebugToolbar">

I pasted only the beginning for the brevity, but it seems like style="display:none;" is the reason of empty Chrome panel. Should I make some configuration changes?

current transaction is aborted, commands ignored until end of transaction block

I get this error, after I add your app to the installed_apps and then load any page of my app, or try to do syncdb.

Is this a know issue? is there a fix?

Thanks

Here is a stack trace:

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/staff/

Django Version: 1.4.3
Python Version: 2.7.2
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.flatpages',
 'storages',
 'debug_toolbar',
 'debug_panel',
 'django.contrib.humanize',
 'django.contrib.sitemaps',
 'django.contrib.admin',
 'south',
 'djcelery',
 'kombu.transport.django',
 'compressor',
 'easy_thumbnails',
 'gunicorn',
 'django_coverage',
 'django_nvd3',
 'django_nose',
 'django_extensions',
 'inplaceeditform',
 'django_facebook',
 'requests',
 'password_reset',
 'starter',
 'users',
 'utilities',
 'payments',
 'boxes',
 'bybox',
 'staff',
 'api',
 'digital',
 'rest_framework',
 'rest_framework.authtoken')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
 'debug_toolbar.middleware.DebugToolbarMiddleware')


Traceback:
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  188.                 response = middleware_method(request, response)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/base.py" in save
  463.         self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/base.py" in save_base
  551.                 result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/manager.py" in _insert
  203.         return insert_query(self.model, objs, fields, **kwargs)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/query.py" in insert_query
  1593.     return query.get_compiler(using=using).execute_sql(return_id)
File "/Users/tharshan/box-websites/venv/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
  912.             cursor.execute(sql, params)

Exception Type: InternalError at /staff/
Exception Value: current transaction is aborted, commands ignored until end of transaction block

New feature: Clear history

Please add a button to clear the history. Currently, I have to close the developer tools and re-open it to clear all the request history.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.