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("", 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.6.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.6-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django_admin_boilerplate-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cbe09d9b0c2eb0d9d254ec2b792df088ff7d1f80ead404e6494ba4d31f3280a2
MD5 583295ce16fbc7db038bec4252990651
BLAKE2b-256 f6e32d3404e30a4f125ad3a95d017f8db9473a86df7d483ba4f4fac1c371968d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_admin_boilerplate-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 60bb0145c455dd1fedefe690ad5639bafc79105e44e66c633c194ef3ebed2015
MD5 85240e0c563f940aae17ed7100051b30
BLAKE2b-256 c43855547b5fe96de85dfdfef30f4a6fa1d920fffd450e306223bd0a158b793d

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