otto-torino / django-baton

A cool, modern and responsive django admin application based on bootstrap 5 that brings AI to the Django admin - https://baton.sqrt64.it/
MIT License
879 stars 95 forks source link

Theme is not changing after installation #13

Closed tawanda closed 5 years ago

tawanda commented 5 years ago

Good Day

I followed all 3 steps from the installation

Django versions tested and not working 2.0 and 2.1.7 OS: Windows 10

pip install git+https://github.com/otto-torino/django-baton

settings.py

START_APPS = [
    'baton',
]

DJANGO_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
]

THIRD_PARTY_APPS = [
    'nested_inline',
    'import_export',
]

PROJECT_APPS = [
    'apps.common.apps.CommonConfig',
    'apps.dashboard.apps.DashboardConfig',
    'apps.invoices.apps.InvoicesConfig',
    'apps.organisations.apps.OrganisationConfig',
    'apps.products.apps.ProductsConfig',
    'apps.shop.apps.ShopConfig',
    'apps.users.apps.UsersConfig',
    'apps.website.apps.WebsiteConfig'
]

LAST_THIRD_PARTY_APPS = [
    'baton.autodiscover',
]

INSTALLED_APPS = START_APPS + DJANGO_APPS + THIRD_PARTY_APPS + PROJECT_APPS + LAST_THIRD_PARTY_APPS

urls.py

from baton.autodiscover import admin
from django.urls import path, include

urlpatterns = [

    path('admin/', admin.site.urls),
    path('baton/', include('baton.urls')),

]

any idea what I am doing wrong. it still uses the old django admin template with the above setup

tawanda commented 5 years ago

My bad, I had an old base_site.html in my admin template folder that was overriding the awesomeness