美文网首页
成绩分析系统🏫 by Django

成绩分析系统🏫 by Django

作者: 自制柠檬茶 | 来源:发表于2016-11-14 13:11 被阅读70次

1. 环境配置


  • 我的环境
macOS Sierra 10.12.1
Python 3.5.2
PyCharm 2016.2.3
Django 1.10.3
PyMySQL 0.7.9
numpy 1.11.2
pandas 0.19.1
xlrd 1.0.0 (读取 xlsx)
Project Interpreter 安装失败请挂 VPN
  • 终端输入 升级 pip
pip3 install --upgrade pip
  • Django 刷新数据库
python3 manage.py makemigrations
python3 manage.py migrate
  • Django 创建 admin 管理员账户
python3 manage.py createsuperuser

2. 网页代码


  • 引入静态文件
{% load staticfiles %}
  • head
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>重庆理工大学学生成绩分析系统 (。◕ˇ∀ˇ◕) by cateek</title>
    <link href="{% static 'img/favicon.ico' %}" rel="shortcut icon">
    <!-- Bootstrap -->
    <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
  • iframe 本项目已弃用 iframe ,以下代码保留备用。
<a href="iframe1.html" target="iframe">click on me!</a>
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
    <iframe src="iframe.html" name="iframe">
        <p>Your browser does not support iframes.</p>
    </iframe>
</div>

相关文章

网友评论

      本文标题:成绩分析系统🏫 by Django

      本文链接:https://www.haomeiwen.com/subject/cidqpttx.html