🚀 Django Auto Admin Demo

This demo showcases the django-admin-magic package, which automatically registers your Django models with the admin site.

{% if has_superuser %}
✅ Superuser account exists. You can log in to the admin interface.
{% else %}
⚠️ No superuser account found. Run python manage.py createsuperuser to create one.
{% endif %} 🔧 Go to Django Admin

📊 Automatically Registered Models

The following models have been automatically registered with the Django admin site:

{% for model in models %}
{{ model.name }}
{{ model.doc|truncatewords:20 }}
Fields: {% for field in model.fields %}
• {{ field.name }} ({{ field.type }})
{% endfor %}
{% endfor %}

🎯 Features Demonstrated

🔧 How to Use

  1. Install django-admin-magic: pip install django-admin-magic
  2. Add to INSTALLED_APPS: 'django_admin_magic'
  3. Configure the app label: AUTO_ADMIN_APP_LABEL = 'your_app'
  4. That's it! Your models are automatically registered.