Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/one-programmer/django-adminlte

Django AdminLTE is a smart admin based on adminLTE and django
https://github.com/one-programmer/django-adminlte

admin adminlte django

Last synced: about 2 months ago
JSON representation

Django AdminLTE is a smart admin based on adminLTE and django

Awesome Lists containing this project

README

        

# Django AdminLTE

Django AdminLTE is a smart admin based on adminLTE and django

[![Build Status](https://travis-ci.org/beastbikes/django-adminlte.svg?branch=master)](https://travis-ci.org/beastbikes/django-adminlte)[![PyPI version](https://badge.fury.io/py/django-adminlte-admin.svg)](https://badge.fury.io/py/django-adminlte-admin)

## Install

```shell
pip install django-adminlte-admin
```

## Quick start

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

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

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

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

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

```python
'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

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