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

Sidebar is not properly showing #765

Closed
shadowwa1k3r opened this issue Sep 5, 2020 · 3 comments
Closed

Sidebar is not properly showing #765

shadowwa1k3r opened this issue Sep 5, 2020 · 3 comments

Comments

@shadowwa1k3r
Copy link

Version: django-suit-2.0a1
Problem: Sidebar is not showing properly, but I did not get style problems when inspect with browser debugger
image
image

@Mahdi-Ba
Copy link

I have got same problem .
I extend AdminSite Class django and set
enable_nav_sidebar = False
create directory myadmin and apps.py file and write

from django.contrib.admin.apps import AdminConfig

class MyAdminConfig(AdminConfig):
    default_site = 'myadmin.admin.MyAdminSite'

then like bellow write in admin.py

from django.contrib import admin
class MyAdminSite(admin.AdminSite):
    enable_nav_sidebar = False

then register and replace in settings.py

    'suit',
    # 'django.contrib.admin',
    'myadmin.apps.MyAdminConfig',

@Jay-Arr-HummingBird
Copy link

Jay-Arr-HummingBird commented Oct 9, 2020

This solution works for me; my development website uses
Python 3.7.6
suit 2.0a1
Django 3.1.2
(I upgraded from Django 2.1.0 today)

@neerajgupta2407
Copy link

Thanks @Mahdi-Ba for solution
I have created small gist for above issue.
https://gist.github.com/neerajgupta2407/2474f255a4fb5a1f136288c480c91d87

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

4 participants