A simple Django app to build backoffice dashboard
Project description
Django Backoffice Dashboard
Django Backoffice is an application Django to easier create backoffice dashboard integrated for your project.
Installation
-
Install django-backoffice using:
pip install django-backoffice-dashboard-alpha
-
Add
djbackoffice
to yourINSTALLED_APPS
setting like thisINSTALLED_APPS = [ ... 'djbackoffice', ]
-
Run
python manage.py collectstatic
to collect file static djbackoffice into project. -
Include url
djbackoffice
in your root urlfrom djbackoffice.core import backoffice .... urlpatterns = [ path('admin/', admin.site.urls), ..... path('backoffice/', backoffice.urls), ]
-
Access
http://127.0.0.1:8000/backoffice/login/
to enter backoffice page.
How to Use
- create file
backoffice.py
on your app - Then write
Simple register
from djbackoffice.core import backoffice
from author.models import Author
backoffice.register(Author)
Advanced register
from djbackoffice.core import backoffice, BackofficeOptions
from djbackoffice.decorators import register
from author.models import Author
@register(Author)
class AuthorOption(BackofficeOptions):
# To select the fields that will appear in the index view
list_display = ('name', 'email', 'address', 'phone_number')
# To select the field to be the search key
search_fields = ('name', 'email')
# To select a form layout
form_column_style = 2
# To select CRUD mode. The default Read mode cannot be disabled
crud_mode = 'cru'
# To set how much data appears in the index view
list_per_page = 50
# To set the icon that appears on the menu
# icon using https://icons.getbootstrap.com
icon_menu = "bi-door-open-fill"
Thanks!
- https://github.com/zuramai/mazer: Mazer Dashboard Template
For Contributor
- clone project
- symlink app to
demo
ln -s [path_project_djbackoffice] [path_demo_djbackoffice]
- create
env
development - active
env
- enter directory
demo
- now, you can access all command
manage.py
TODO
- Permission Access
- Custom Dashboard
- Organize Sidebar Menu
- Advance Filter
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-backoffice-dashboard-alpha-0.0.1a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a2dab3329aa679c8e369b03967d432cc9845918e1ad9fcc6a0c3057c23412f |
|
MD5 | 61f830ebf49b1c22d0248525b62c1978 |
|
BLAKE2b-256 | 3cdca120c22a827c7d58c98ce7bb3fa697afec5d1287511d592dcf2385c3b02c |
Close
Hashes for django_backoffice_dashboard_alpha-0.0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c10fe8f98310e14a7f9e71acb638e7f4a29eb1422baa669c3026d775899f717e |
|
MD5 | 8a2e7c7437192bfa8f60971bfc607690 |
|
BLAKE2b-256 | 93d1826a8710cbf81c527764e7833146fbce12048073e9de321c2a0548e06c6c |