Change the default Django templates to the LTE
This is my first open source project done in Django, I hope it will be useful for you and look forward to suggestions, bugs and collaborations.
Instale usando PyPI:
pip install django-lteadmin
Add the app adminlte
to settings.py
- INSTALLED_APPS = (
- 'adminlte', ...
)
Menu icons are set in the Model:
- class MyModel(models.Model):
Name = models.CharField( ...
- def get_icon_menu_model_class(self):
- return 'fa-user'
- def get_icon_menu_add_model_class(self):
- return 'fa-plus'
- def get_icon_menu_change_model_class(self):
- return 'fa-edit'
- Create tests
- Maintain menu status after selecting an item
- Organize the code according to the PEP 8