Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/revolunet/bootstrap-django-admin

Django admin templates styled with Twitter Bootstrap
https://github.com/revolunet/bootstrap-django-admin

Last synced: 3 months ago
JSON representation

Django admin templates styled with Twitter Bootstrap

Awesome Lists containing this project

README

        

Beautiful Django admin template styled with Twitter Bootstrap

Works on Django 1.3 and above.

Screenshots:













How to use:


  1. Setup django admin first, link: https://docs.djangoproject.com/en/dev/ref/contrib/admin/ .

  2. Clone the project to you workspace, copy the template folder to you django project root, so the template will locates at the same directory as settings.py.

  3. Modify settings:

    1. Add

      os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/')

      to TEMPLATE_DIRS in settings.py.


    2. Add additional url rule to urls.py, this rule is used for hosting static resouce in admin templates:

      (r'^admins/(?P.*)$', 'django.views.static.serve', {'document_root': '/your_project_directory/project_name/project_folder/templates/admin/static', 'show_indexes': True}),






Customize Bootstrap

BootStrap css locates at /template/admin/static/css, rewrite styles and rebuild, you can also modify rewrite.css.