Django Debug Toolbar doesn't show - django

I'm using Django But Django Debug Toolbar doesn't show on Chrome & Firefox. I have done all steps for config, that said on the official site of Django-debug-toolbar.
Django Version: 3.1.4
Python Version: 3.9.0

Problem Solved, I tested 127.0.0.1:8000 on Microsoft edge and everything was ok but on chrome, firefox and ie the toolbar did not show.
If you have configured correctly and can't see the toolbar please check with other browsers, like edge
Thanks all.

Related

Django development server quits itself when accessing admin page

I am following the django docs tutorial to build a polls app i just created the superuser but whenever i try to access the admin page the server quits on its own with no error message that's in both chrome and firefox i'm on windows
You need to check your version numbers of Django and Python to ensure compatibility. There is a problem with Django 3.0 (the latest version) and with version 3.7.0 of Python and potentially its older versions as well.
Try updating your Python installation to see if that fixes the issue.

Upgrading to Wagtail 2.3 and Django 2.1 causes migrations and login to freeze

I upgraded our existing site to Wagtail 2.3 from Wagtail 2.1, everything went smoothly and it works fine.
I saw support for Django 2.1 was included, so I upgraded Django - it successfully applied the migrations but froze before script completion. I had to close the terminal window to stop it (cntl-c didn't work).
I also could not login to the site - runserver would freeze up the same way. I tried this with Django 2.1, 2.1.1, 2.1.2, 2.1.3, 2.1.4 - all with the same results.
I've downgraded to Django 2.0.9 and everything is working fine. I'm not sure if this is a Django bug, a Wagtail bug, or a project bug. There is no output when running migrate or runserver.
I did look at my Postgres processes - it looked like it was freezing up while trying to read permissions for a user or something related to the content types.
I'm looking for ideas on what else I can check to debug this.

Ember app blank page on Firefox OS

I was following this guide on MDN for developing a Firefox OS App using Ember. It runs without problems in the browser but when I try to install it on Firefox OS using the Firefox WebIDE I just get a blank page.
The console output shows no errors but every time I try to install it on Firefox OS the ember console displays Content Security Policy violation: {}
I have tried it on my Geeksphone Revolution running Firefox OS 2.0 and the Firefox OS simulator for 1.4 and 2.0.
System info:
OS: OS X 10.10.3
Ember version: 0.2.6
Node version: 0.12.0
I think I did the whole installing wrong. I used Open hosted app from the WebIDE and just entered my IP Address. Looking at this article on MDN I found out that I need a page with a script to correctly install my app.
For now I found a workaround by using Open Packaged App on my dist directory.

Error on publishing a Django-CMS 2.4 page

I have just updated my site from Django-CMS 2.3 to 2.4, and from Django 1.4.3 to Django 1.5.1.
The site runs fine on my dev environment; at first it gives me the welcome to Django-CMS page (with the pony), and then I just had to run through each page in the admin panel, and press "publish draft" on it to make it appear.
When I tried to repeat the trick on prod though, all goes well until I try to press "publish draft" on the home page. The other pages are ok, but this page gives me the error message:
Field 'moderator_state' doesn't have a default value
I can preview the page fine, but it won't publish.
Can anyone suggest what I might be doing wrong?
thanks!
Have a look through the upgrade guide and make sure to apply DB migrations:
python manage.py migrate cms
Also, the moderator option is no longer in use so make sure to remove it from the settings.py

Cannot debug javascript on webstorm

I'm trying to get debugging to work on ff/chrome. I've checked all the post that come up when you google.
What I've done:
- setup a ff profile
- setup a in place deployment and double checked the remote urls..
- all plugins are enabled (including Javascript debugger)
As it seems the webstorm debugging extension was not installed in firefox (or chrome). I cannot find anything on how to get it installed. (I've allready tried re-installing Webstorm)
When I debug a file, firefox opens, but displays no page and the url-bar is empty..
I'm using Webstorm 4.0 and Firefox 11
Although this post might be outdated:
You need to install the JetBrains IDE extension in the corresponding browser.
When this is done, check if the same host and port are specified for Webstorm as well as for the extension as well.