Skip to content

about

Django Simple UI 是一个基于 Django 框架的用户界面库,它提供了一组简单的、易于使用的 UI 组件和模板,可以帮助开发者快速构建现代、美观的 Web 应用程序。

快速使用

下载模块

bash
pip install django-simpleui

注册app

python
INSTALLED_APPS = [
    "simpleui",  # 就这个
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    'apps.api',
]

创建superuser后台管理账号

bash
(virtualcard) D:\code\virtual_card\vc>python manage.py createsuperuser 
用户名 (leave blank to use '12061'): root
电子邮件地址: root@qq.com
Password:
Password (again):
密码长度太短。密码必须包含至少 8 个字符。
这个密码太常见了。
密码只包含数字。
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.

访问admin站点

1832669382568837120.png

其它配置