Giter Club home page Giter Club logo

simpledjango3-adminlte's Introduction

simpleDjango3-adminLTE

django3结合adminLTE3前端模板的简单实例。

方法一:

使用 django-adminlte3来结合使用
该插件的adminlte3说明书打不开了,只能开2的文档。
文档地址:django-adminlte2 api

优点 :
    支持pip直接安装,开包直接使用
    有使用文档
缺点:
    用了它,以后想换前端框架是不可能了;
    该插件的adminlte3说明书打不开了;
    模板继承不够直观,能看疯了。

方法二:

使用 django-adminlte-ui来结合使用
文档地址:django-adminlte-ui api

优点 :
    支持pip直接安装,开包直接使用
    有使用文档,有中英双语
    **人开发的
缺点:
    用了它,以后想换前端框架是不可能了;
    adminlte封装的版本是 2.3.6,并不是最新的了。

方法三:

直接使用原生adminlte来结合django使用
本例子,使用的是此法。 使用 AdminLTE 的版本是 3.0.2

优点 :
    adminlte 版本你想要多新就多新
    前端框架可换,耦合度不会那么高
缺点:
    不能支持pip直接安装,只能将它拆解放到django的templates和static里;
    需要自行修改引用路径;

快速替换引用路径

Image text

部署成果的效果demo

这只是一个简单的结合示例,它存在bug,但是实际开发中url.py视图肯定都是要重写的,hahaha
Image text

Thanks

AdminLTE
django
django-adminlte-ui
django-adminlte3

simpledjango3-adminlte's People

Contributors

desirefire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

reganzm hnjm

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.