pyadmin
Python Django admin
Pyadmin is a django admin theme
Overview
- Forget Password Option - Admin can enable or disable forget password option on admin login page
- Theme Color - Change theme color of admin
- Admin Header Title - Change django admin header title
- Image preview on change form if form has Image field
- Added "Next" and "Prev" for change form. It will display when model have 2 or more rows data and model has default django primary key field "id"
Documentation
-
- Installation -
-
-
Run
pip install pyadmin
-
Add 'pyadmin' to your INSTALLED_APPS just before " django.contrib.admin "
'pyadmin',
-
Add middleware in MIDDLEWARE_CLASSES list
'pyadmin.middleware.PyadminMiddleware',
-
Add in urls.py
url(r'^admin/', include('pyadmin.urls')),
-
Run 'python manage.py migrate' for make visitor model
python manage.py migrate
-
Run 'python manage.py collectstatic'
# For this you have to add static_root path in settings file: STATIC_ROOT = os.path.join(BASE_DIR, 'static') python manage.py collectstatic
-
Now you have successfully install pyadmin in your project
-
-
- Customization -
-
-
Add 'ALLOW_FORGET_PASSWORD_ADMIN' for Enable Forget password option in login page, default: Disable
ALLOW_FORGET_PASSWORD_ADMIN = True EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = '<Email ID>' SERVER_EMAIL = '<Email ID>' EMAIL_HOST = '<smtp.example.com>' #Ex: Gmail : smtp.gmail.com EMAIL_PORT = <Port Number> #Ex: Gmail : 587 EMAIL_HOST_USER = '<Email ID>' EMAIL_HOST_PASSWORD = '<Password>' EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
-
Add 'ADMIN_COLOR_THEME' for change admin color. you can write directly name of color. default: cyan
ADMIN_COLOR_THEME = 'red'
-
Add 'ADMIN_HEADER_TITLE' for change admin header title
ADMIN_HEADER_TITLE = 'Pyadmin Administrator'
-
License
pyadmin is an Open Source project licensed under the terms of the MIT license <https://github.com/rajanmandanka/pyadmin/blob/master/LICENSE>