-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History panel remains empty #1476
Comments
Hi @ppfeufer! Are you running this locally? What does the rest of your toolbar setup look like? What does your urls.py that includes the toolbar's url look like? |
Hey there, urls.py: import debug_toolbar
from django.conf import settings
from django.conf.urls import url
from django.urls import include, path
from allianceauth import urls
urlpatterns = [
# debug toolbar
path("__debug__/", include(debug_toolbar.urls)),
# alliance auth urls
url(r"", include(urls)),
] base.py; INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"django.contrib.humanize",
"django_celery_beat",
"bootstrapform",
"sortedm2m",
"esi",
"allianceauth",
"allianceauth.authentication",
"allianceauth.services",
"allianceauth.eveonline",
"allianceauth.groupmanagement",
"allianceauth.notifications",
"allianceauth.thirdparty.navhelper",
] in local.py where debig_toolbar is added: INTERNAL_IPS = ["127.0.0.1"]
INSTALLED_APPS += [
"debug_toolbar",
] |
And yes, it is locally Need the apache conf as well? |
Are you using Django channels? |
I actually had to google what that is, so I would say no. |
I have this same problem, and I figured out a way to reproduce it vs not. I'm not using Django Channels either, but I noticed that the problem only occurs if I use uvicorn and asgi locally, rather than using
As a workaround, I have been installing and using the separate Thanks in advance! |
I perhaps should have asked if you were using asgi @ppfeufer. Can you both try setting |
Thanks @tim-schilling! Setting However, there's a new issue. I'm now seeing that after initial load, if more AJAX requests are made, I can only get them to show up in the history list by hitting the DDT |
Alright thank you. I wasn't sure if that would entirely work. I had started on getting the toolbar to work with ASGI in the past, but didn't complete it. |
Setting But I get an Internal Server Error when clicking on "switch" on an Ajax call
|
On the latest version of DjDT, I'm seeing that So I guess this may be mostly but not fully resolved. (And it seems to require that |
@sjdemartini what are you using to make those AJAX requests? Is it XHR, fetch or something else? |
@tim-schilling I was using |
Perfect, then this can be closed as a part of #1650. |
For some reason I can't figure out, my history panel is always empty.
All other panels work just fine.
The text was updated successfully, but these errors were encountered: