Skip to content

kristoffernolgren/bootstrap-django-admin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Beautiful Django admin template styled with Twitter Bootstrap

Bootstrap 2.0 Upgraded.
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}),
                      
      Github hides tag 'path', so you need to add it after '(?P', or find it in change log.

      Customize Bootstrap

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

About

Django admin templates styled with Twitter Bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published