pycharm - Debugging django-channels -
i'm trying incorporate django-channels next project having issues debugging. have tried pycharms debugger , pdb not hit breakpoints.
take django channels panel. plugin django debug toolbar. can add django-channels-panel add channel debug functionality project. ensures can channel details when app in development mode.
https://github.com/krukov/django-channels-panel
installation [ django debug toolbar ]
pip install django-debug-toolbar
in settings.py
installed_apps = [ # ... 'django.contrib.staticfiles', # ... 'debug_toolbar', ] middleware = [ # ... 'debug_toolbar.middleware.debugtoolbarmiddleware', # ... ]
in urls.py
from django.conf import settings django.conf.urls import include, url if settings.debug: import debug_toolbar urlpatterns += [ url(r'^__debug__/', include(debug_toolbar.urls)), ]
configuration
debug_toolbar_panels = [ 'debug_toolbar.panels.versions.versionspanel', 'debug_toolbar.panels.timer.timerpanel', 'debug_toolbar.panels.settings.settingspanel', 'debug_toolbar.panels.headers.headerspanel', 'debug_toolbar.panels.request.requestpanel', 'debug_toolbar.panels.sql.sqlpanel', 'debug_toolbar.panels.staticfiles.staticfilespanel', 'debug_toolbar.panels.templates.templatespanel', 'debug_toolbar.panels.cache.cachepanel', 'debug_toolbar.panels.signals.signalspanel', 'debug_toolbar.panels.logging.loggingpanel', 'debug_toolbar.panels.redirects.redirectspanel', ]
installation [ django channels panel ]
pip install django-channels-panel add 'channels_panel' installed_apps in settings.py add 'channels_panel.panel.channelsdebugpanel' debug_toolbar_panels
Comments
Post a Comment