Giter Site home page Giter Site logo

django-sb-admin's Introduction

django-sb-admin

image

Introduction

Django SB Admin is a resuable Django app which provides a Bootstrap 3 SB Admin dashboard theme:

http://startbootstrap.com/template-overviews/sb-admin/

SB Admin is a free to download Bootstrap admin template. This template uses the default Bootstrap 3 styles along with a variety of powerful jQuery plugins to create a powerful framework for creating admin panels, web apps, or back-end dashboards.

Installation

  1. Install an app:

    pip install django-sb-admin
  2. Add "django_sb_admin" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'django_sb_admin',
    )
  3. If you want to see an example app, add following to your urls file:

    url(r'^django-sb-admin/', include('django_sb_admin.urls')),

Usage

image

  1. Copy following blank template:

    django_sb_admin/sb_admin_blank.html

or:

  1. Extend a base template:

    {% extends "django_sb_admin/base.html" %}

and then:

  1. Override following blocks:

    {% block sb_admin_header %}<!-- Header of the page -->{% endblock sb_admin_header %}
    {% block sb_admin_title %}<!-- Title of the content the page -->{% endblock sb_admin_title %}
    {% block sb_admin_sidebar %}<!-- left sidebar -->{% endblock sb_admin_sidebar %}
    {% block sb_admin_navbar_right %}<!-- right top navbar -->{% endblock sb_admin_navbar_right %}
    {% block sb_admin_content %}<!-- content -->{% endblock sb_admin_content %}

To use included login page put following in your urls.py:

url(r'^accounts/login/$', auth_views.login, 
    {'template_name': 'django_sb_admin/examples/login.html'}),

Conventions

Template blocks

  • Names of blocks start with sb_admin

Extras

  • login template
  • messages support in a base template

License

Copyright 2015 Rafal Zawadzki

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SB Admin itself is licensed under the Apache License https://github.com/IronSummitMedia/startbootstrap-sb-admin/blob/gh-pages/LICENSE

django-sb-admin's People

Contributors

bluszcz avatar jmhobrien avatar ssteinerx avatar

Stargazers

mp5 avatar

Watchers

mp5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.