新建admin用户
createsuperuser
设定好用户名,邮箱,密码
设置setting
LANGUAGE_CODE = 'zh-hans'TIME_ZONE = 'Asia/Shanghai'USE_I18N = TrueUSE_L10N = TrueUSE_TZ = False
在写好的users的app下修改admin.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literalsfrom django.contrib import admin# Register your models here.
from .models import UserProfileclass UserProfileAdmin(admin.ModelAdmin):passadmin.site.register(UserProfile, UserProfileAdmin)
这样在后台管理界面就可以看到用户管理的表了