New advanced admin panel in Django
Hello, this is a new flexible admin panel made in django
This way you don't create an admin panel for your project, you just enter the model.
pip install -r requirements.txt
* Add the dashboard and templates/dashboard folders to your project
* and create a .env file
ADMIN='Username'
PASSWORD='Password'
COOKIE = is_admin #default
urlpatterns = [
path('admin/', admin.site.urls),
# new admin panel
path('dashboard/', include('dashboard.urls')),
]
Check the result. (http://127.0.0.1:8000/dashboard/)
And you will have a login window. Then enter these details
- username = env.ADMIN
- passwrod = env.PASSWORD
ADMIN_REGISTER = [
{'model': Model'},
{'model': Model2'},
]
enter it like this and the admin panel is ready.
Thank you very much for your attention!