Skip to content

one-programmer/django-adminlte

Repository files navigation

Django AdminLTE

Django AdminLTE is a smart admin based on adminLTE and django

Build StatusPyPI version

Install

pip install django-adminlte-admin

Quick start

1 Add "adminlte" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
    ...
    'adminlte.apps.AdminlteConfig',
]

2 Include the adminlte URLconf in your project urls.py like this::

url(r'^adminlte/', include('adminlte.urls')),

3 add admin_config to context_processors or you can make your own config

'OPTIONS': {
    'context_processors': [
        ...
        'adminlte.utils.admin_config',
    ],
},

4 Start the development server and visit http://127.0.0.1:8000/adminlte/ to create a poll (you'll need the Admin app enabled).

5 Visit http://127.0.0.1:8000/adminlte/ to participate in the adminlte.

6 Look the examples in the code to see how to start.

How to run example

PYTHONPATH=PYTHONPATH:. python examples/demo/manage.py runserver

Settings

ADMINLTE_LOGIN_VIEW

adminlte login view. default is adminlte.login

ADMINLTE_IS_LOGIN_FUNC

adminlte login validate method. if required_login=False will not validate login

ADMINLTE_SITE_NAME

Site name. default is AdminLTE

ADMINLTE_SITE_URL

footer url, default is https://adminlte.speedx.com

Develop

rm dist/*
python setup.py sdist bdist_wheel
twine upload dist/*