Beautiful Django admin template styled with Twitter Bootstrap
Bootstrap 2.0 Upgraded.
Works on Django 1.3 and above.
- Setup django admin first, link: https://docs.djangoproject.com/en/dev/ref/contrib/admin/ .
- 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.
- Modify settings:
- Add
os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/')
to TEMPLATE_DIRS in settings.py. -
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}),
Github hides tag 'path', so you need to add it after '(?P', or find it in change log.
BootStrap css locates at /template/admin/static/css, rewrite styles and rebuild, you can also modify rewrite.css. - Add