Blame view
apps/account/views.py
501 Bytes
f96567709 modify page |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# coding: utf-8 import os from django.template import RequestContext from django.template.context_processors import csrf from django.shortcuts import render_to_response from apps.account.models import SysUser def index(request): """ 线上包管理首页 :param request: request """ c = csrf(request) users = SysUser.objects.all() c.update({ 'users': users, }) return render_to_response('account/index.html', c, context_instance=RequestContext(request)) |