Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#32119 closed Bug (duplicate)

Broken admin interface after 3.1 update

Reported by: Zvi Baratz Owned by: nobody
Component: contrib.admin Version: 3.1
Severity: Normal Keywords: Admin CSS
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Zvi Baratz)

Hi all,

Thank you for all your amazing work on this project.

I finally migrated my project today from 3.0 to 3.1 and am now getting a broken admin interface. The landing page looks fine but whenever I try to access any of the list or change views it seems like the new navigation bar might be taking over the entire screen.

Here is an example when trying to view one of my admin site list views:
https://ibb.co/BnfFrhm

Thanks again!
Zvi

Change History (6)

comment:1 by Zvi Baratz, 4 years ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 4 years ago

Resolution: duplicate
Status: newclosed

It looks like a duplicate of #31909, please check the list of context processors, see comment.

comment:3 by Carlton Gibson, 4 years ago

This could also be stale CSS (c.f. #31737). Make sure to clear your browser cache (or force-refresh) to ensure the CSS is updated.

comment:4 by Zvi Baratz, 4 years ago

Unfortunately, I already tried both to force-refresh and manually clear the cache. I also validated the relevant settings:

MIDDLEWARE = [
    "whitenoise.middleware.WhiteNoiseMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "corsheaders.middleware.CorsMiddleware",
    "django.middleware.common.CommonMiddleware",
    "django.middleware.csrf.CsrfViewMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "django.contrib.messages.middleware.MessageMiddleware",
    "django.middleware.clickjacking.XFrameOptionsMiddleware",
]

TEMPLATES = [
    {
        "BACKEND": "django.template.backends.django.DjangoTemplates",
        "DIRS": [os.path.join(BASE_DIR, "templates")],
        "APP_DIRS": True,
        "OPTIONS": {
            "context_processors": [
                "django.template.context_processors.debug",
                "django.template.context_processors.request",
                "django.contrib.auth.context_processors.auth",
                "django.contrib.messages.context_processors.messages",
                "django.template.context_processors.media",
            ]
        },
    }
]

As far as I understand everything seems to be OK but I'm still getting the same result.

comment:5 by Mariusz Felisiak, 4 years ago

I'm sorry but we cannot reproduce this issue. Can you provide a small sample project?

in reply to:  5 comment:6 by Zvi Baratz, 4 years ago

Replying to Mariusz Felisiak:

I'm sorry but we cannot reproduce this issue. Can you provide a small sample project?

Well, this is embarrassing. I simply neglected to remove my old static files directory. Sorry and thank you.

Note: See TracTickets for help on using tickets.
Back to Top