You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
EduSystem
使用手册
-
创建数据库
create database edu_sys;
-
修改
EduSystemServer/setting.py
文件中的配置DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': "edu_sys", 'USER': "用户名", 'PASSWORD': "密码", 'HOST': "localhost", 'PORT': 3306, } }
-
迁移模型至数据库
-
生成迁移文件
python manage.py makemigrations Eduadmin python manage.py makemigrations Student python manage.py makemigrations teacher python manage.py makemigrations course
-
迁移
python manage.py migrate
-
-
创建admin用户
python manage.py createsuperuser # 输入用户名,邮箱,密码
-
运行程序
python manage.py runserver