Skip to content
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

Not working with Grappelli 3.0.2 and Django 3.2.12 #18

Open
shivam-sachit opened this issue Mar 9, 2022 · 0 comments
Open

Not working with Grappelli 3.0.2 and Django 3.2.12 #18

shivam-sachit opened this issue Mar 9, 2022 · 0 comments

Comments

@shivam-sachit
Copy link

shivam-sachit commented Mar 9, 2022

  • django-admin-env-notice version: 0.4
  • Django version: 3.2.12
  • Python version: 3.10.2
  • Operating System: Manjaro

Description

Trying to get django-admin-env-notice to work with grappelli
The bar is not showing on the admin site

What I Did

ENVIRONMENT_NAME = 'Local'

ENVIRONMENT_COLOR = 'GREY'

Tried the following selectors and also without any selectors:

ENVIRONMENT_ADMIN_SELECTOR = "grp-header"
ENVIRONMENT_ADMIN_SELECTOR = ".grp-module-login:before, #grp-header"

ENVIRONMENT_FLOAT = True
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates/')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django_admin_env_notice.context_processors.from_settings',
                '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.request',
            ],
        },
    },
]

django_admin_env_notice in INSTALLED_APPS above django.contrib.admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant