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.
Go to file
bettleChen 41e76a2742
add javascript file
1 year ago
.idea commit teacher 1 year ago
EduSystemServer add javascript file 1 year ago
LICENSE Initial commit 1 year ago
README.md update ReadME.md 1 year ago

README.md

EduSystem

使用手册

  1. 创建数据库

    create database edu_sys;
    
  2. 修改EduSystemServer/setting.py文件中的配置

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': "edu_sys",
            'USER': "用户名",
            'PASSWORD': "密码",
            'HOST': "localhost",
            'PORT': 3306,
        }
    }
    
  3. 迁移模型至数据库

    1. 生成迁移文件

      python manage.py makemigrations Eduadmin
      python manage.py makemigrations Student
      python manage.py makemigrations teacher
      python manage.py makemigrations course
      
    2. 迁移

      python manage.py migrate
      
  4. 创建admin用户

    python manage.py createsuperuser
    # 输入用户名,邮箱,密码
    
  5. 运行程序

    python manage.py runserver
    

访问网址

管理端:http://127.0.0.1:8000/admin/

用户端:http://127.0.0.1:8000