Przeglądaj źródła

# feat:学院简介模板搭建;教师队伍简介模板搭建;科研工作队伍搭建;招生就业模板搭建;党建工作模板搭建;

yang yi 2 tygodni temu
rodzic
commit
5571f2af1d

+ 11 - 0
pythonweb/aboutApp/templates/about.html

@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block title %}
+学院概况
+{% endblock %}
+
+{% block content %}
+<div class="container">
+    <h1>学院概况</h1>
+</div>
+{% endblock %}

+ 8 - 6
pythonweb/aboutApp/views.py

@@ -1,15 +1,17 @@
-from django.http import HttpResponse
 from django.shortcuts import render
 
-# Create your views here.
+
 def survey(request):
-    return HttpResponse('学院概况')
+    return render(request, 'about.html')
+
 
 def leader(request):
-    return HttpResponse("领导分工")
+    return render(request, 'about.html')
+
 
 def organization(request):
-    return HttpResponse('机构')
+    return render(request, 'about.html')
+
 
 def major(request):
-    return HttpResponse('专业介绍')
+    return render(request, 'about.html')

+ 11 - 0
pythonweb/admissionsAndEmploymentApp/templates/admissionsAndEmployment.html

@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block title %}
+招生就业
+{% endblock %}
+
+{% block content %}
+<div class="container">
+    <h1>招生就业</h1>
+</div>
+{% endblock %}

+ 2 - 3
pythonweb/admissionsAndEmploymentApp/views.py

@@ -1,10 +1,9 @@
-from django.http import HttpResponse
 from django.shortcuts import render
 
 
 def admissions(request):
-    return HttpResponse('招生信息')
+    return render(request, 'admissionsAndEmployment.html')
 
 
 def employment(request):
-    return HttpResponse('就业信息')
+    return render(request, 'admissionsAndEmployment.html')

+ 11 - 0
pythonweb/partyApp/templates/party.html

@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block title %}
+党建工作
+{% endblock %}
+
+{% block content %}
+<div class="container">
+    <h1>党建工作</h1>
+</div>
+{% endblock %}

+ 2 - 3
pythonweb/partyApp/views.py

@@ -1,10 +1,9 @@
-from django.http import HttpResponse
 from django.shortcuts import render
 
 
 def party_work(request):
-    return HttpResponse('党建工作')
+    return render(request, 'party.html')
 
 
 def youth_work(request):
-    return HttpResponse('团学工作')
+    return render(request, 'party.html')

+ 11 - 0
pythonweb/scientificApp/templates/scientific.html

@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block title %}
+科研工作
+{% endblock %}
+
+{% block content %}
+<div class="container">
+    <h1>科研工作</h1>
+</div>
+{% endblock %}

+ 1 - 2
pythonweb/scientificApp/views.py

@@ -1,6 +1,5 @@
-from django.http import HttpResponse
 from django.shortcuts import render
 
 
 def index(request):
-    return HttpResponse('科研工作')
+    return render(request, 'scientific.html')

+ 11 - 0
pythonweb/teamApp/templates/team.html

@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block title %}
+师资队伍
+{% endblock %}
+
+{% block content %}
+<div class="container">
+    <h1>师资队伍</h1>
+</div>
+{% endblock %}

+ 7 - 8
pythonweb/teamApp/views.py

@@ -1,30 +1,29 @@
-from django.http import HttpResponse
 from django.shortcuts import render
 
 
 def academic_leader(request):
-    return HttpResponse('学院学科建设带头人')
+    return render(request, 'team.html')
 
 
 def computer_science(request):
-    return HttpResponse('计算机系')
+    return render(request, 'team.html')
 
 
 def software_engineering(request):
-    return HttpResponse('软件工程系')
+    return render(request, 'team.html')
 
 
 def digital_media(request):
-    return HttpResponse('数字媒体技术系')
+    return render(request, 'team.html')
 
 
 def iot_networking(request):
-    return HttpResponse('物联网与网络工程系')
+    return render(request, 'team.html')
 
 
 def math_teaching(request):
-    return HttpResponse('数学教研室')
+    return render(request, 'team.html')
 
 
 def party_work(request):
-    return HttpResponse('党政学工队伍')
+    return render(request, 'team.html')

+ 2 - 0
readme.md

@@ -172,4 +172,6 @@
 
 > 文章分类:专业介绍,领导分工,学院学科建设带头人教师,计算机系教师,软件工程系教师,数字媒体技术系教师,物联网与网络工程系教师,数学教研室教师,党政学工队伍教师,教学科研,党建动态,团学动态,招生,就业
 
+首页轮播图(标题,链接)
+
 #### 物理设计