Skip to main content

A boilerplate for Django admin dashboards

Project description

Django Admin Boilerplate

🚀 A simple boilerplate for Django admin dashboards with theme settings, user management, and database model overview.

Features

  • 📊 Admin dashboard with dynamic database stats.
  • 🎨 User-based theme selection.
  • 🔄 Easy integration into existing Django projects.
  • 📈 User analytics visualization.

📦 Installation

  1. Install via pip (run this command from your Django project root):

    pip install django-admin-boilerplate
    
  2. Add to INSTALLED_APPS in your Django project:

    INSTALLED_APPS = [
        "django_admin_boilerplate",
        "django.contrib.admin",
        "django.contrib.auth",
        ...
    ]
    
  3. 🔗 Add URLs to urls.py Modify your project's urls.py to include the admin dashboard:

    from django.urls import path, include
    
    urlpatterns = [
        path("admin-dashboard/", include("django_admin_boilerplate.urls")),
    ]
    

🛠️ Usage

  1. Run migrations:

    python manage.py migrate
    
  2. Create a superuser if needed:

    python manage.py createsuperuser
    
  3. Install the boilerplate (this moves django_admin_boilerplate to your Django root folder for customization):

    python manage.py install_boilerplate
    
  4. Start the Django server:

    python manage.py runserver
    
  5. Access the admin dashboard at:

    http://127.0.0.1:8000/admin-dashboard/
    

🎨 Customization

Once the boilerplate is installed, you are free to customize:

  • views.py for custom admin logic.
  • templates/ for styling and UI updates.
  • static/ for custom CSS, JavaScript, or images.

📂 Expected File Structure

Your_Django_Project/
├── manage.py
├── sqldb/
├── djangoadminboilerplate/   # Installed boilerplate folder
│   ├── views.py
│   ├── templates/
│   ├── static/
│   ├── urls.py
│   ├── ...

📸 Screenshot (Project Root)

Screenshot


🚀 TODO / Contribution Ideas

  1. Enhance UI: Improve default admin panel styling and layout.
  2. Add User Roles: Implement granular user role management for dashboard access.

📜 License

This project is licensed under the MIT License.

🤝 Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.

📧 Contact

For questions or support, reach out via GitHub Issues.

PYPI homepage

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_admin_boilerplate-0.1.5.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_admin_boilerplate-0.1.5-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file django_admin_boilerplate-0.1.5.tar.gz.

File metadata

File hashes

Hashes for django_admin_boilerplate-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7be34a8c4bbaf7bba12d400f86dd238ae1390780e296d64c4329944accd48b94
MD5 949ecca3d766e60138615503c525c04b
BLAKE2b-256 7846792c09bc7a9ef3be31e11886f327f28e391901f8d9a4b1ed600300d5fe74

See more details on using hashes here.

File details

Details for the file django_admin_boilerplate-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_boilerplate-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6c3e5f278ece0e77503f2beebda4efcf212bb447680f24ab0ee16f09c28c7861
MD5 4427ab79c9f5769c3081367ebfb5e09e
BLAKE2b-256 e7b0ae8b3b83eb2738172bc367e17556d984205a4025327574702be4b779b504

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page