Coder Social home page Coder Social logo

2448795365 / sadmin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ops-coffee-cn/sadmin

0.0 1.0 0.0 325 KB

sadmin是用python Django开发的后台用户管理系统,包含完善的用户管理和权限管理功能,最大的特色是根据URL来定义方便的权限管理。

Python 33.32% JavaScript 32.43% HTML 34.25%

sadmin's Introduction

Sadmin

版本:

python v2.6
django v1.6
Bootstrap v3.2.0

部署(linux):

1.安装django 1.6
2.将项目解压在任意目录下,进入项目目录
3.同步数据库,需要先创建好数据库,数据库连接信息在website/settings.py文件中定义
	# python manage.py syncdb
4.运行项目
	# python manage.py runserver 0.0.0.0:80
5.浏览器访问

权限判断逻辑:

1.用户隶属于某个角色(组的概念),角色具有一定的权限
2.当用户访问某个url时,获取当用户的用户名和要访问的URL地址,判断用户隶属的角色是否包含所以访问的url

欢迎关注微信公众号【运维咖啡吧】获取更多实用干货

扫码关注公众号查看更多实用文章

sadmin's People

Contributors

ops-coffee-cn avatar

Watchers

James Cloos 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.