DEV Community

Cover image for Django Berry BS5 - Free PyPi Library
Sm0ke
Sm0ke

Posted on • Originally published at admin-dashboards.com

Django Berry BS5 - Free PyPi Library

Hello coders!

This article presents Django Admin Berry, the PyPi integration of this iconic design for Django. The latest stable version is provided by Berry maintainers, including Dark Mode, widgets, charts, and authentication pages. The product can be used in any Django project (new or legacy) that needs a modern design with Berry design DNA.

Thanks for reading!

Django Berry - Open-Source Library (Mobile View).


✨ What's in the box

This library can be installed and used with minimum effort and configuration. Once installed, the design covers the following:

  • βœ… Admin Section reserved for Django superusers
  • βœ… All Django.contrib.AUTH pages + Registration
  • βœ… Pages for common users: Dashboard, Widgets, Forms

Berry Dashboard is an open-source Bootstrap 5 design from CodedThemes. The product is designed to deliver the best possible user experience with highly customizable feature-rich pages. Berry has an easy and intuitive responsive design whether it is viewed on retina screens or laptops.

Django Berry - UI Colors Page.


✨ How to use it

As mentioned before, the library can be used in a new Django project or for legacy projects that need a small UI boost in order to look better. In the following section, I will mention the installation steps as listed on the official PyPi Page.

πŸ‘‰ Step #1 - Install the library

$ pip install django-admin-berry
Enter fullscreen mode Exit fullscreen mode

πŸ‘‰ Step #2 - Update the INSTALLED_APPS section of the project

    INSTALLED_APPS = (
        ...
        'admin_berry.apps.AdminBerryConfig',
        'django.contrib.admin',
    )
Enter fullscreen mode Exit fullscreen mode

πŸ‘‰ Step #3 - Update project routing to include the theme URLs

    from django.urls import path, include

    urlpatterns = [
        ...
        path('', include('admin_berry.urls')),
    ]
Enter fullscreen mode Exit fullscreen mode

πŸ‘‰ Step #4 - Migrate database and start the APP

$ # Set up the database
$ python manage.py makemigrations
$ python manage.py migrate
$
$ # Create the superuser
$ python manage.py createsuperuser
$
$ # Start the application (development mode)
$ python manage.py runserver # default port 8000
Enter fullscreen mode Exit fullscreen mode

At this point, the Berry BS5 styling should cover all sections: authentication, the admin section reserved for superusers, and pages for common users.

Django Berry - Sign IN page


Django Berry - Icons (dark mode active)

Django Berry - Icons Page (dark mode)


✨ Berry BS5 Playground project

For those without much time or patience to manually configure the project, a playground app is also available with all the above steps already crafted.

πŸ‘‰ Django Berry Dashboard - sources saved on GitHub

Django Berry - Dashboard Page


Thanks for reading! For more resources, please access:

  • πŸš€ Free support provided by AppSeed (email & Discord)
  • πŸ‘‰ More free apps crafted in Flask, Django, and React

Top comments (0)