From 438e2443d7fd5cab4f8f87bc55e466cef66318ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BF=83=E5=A6=82?= <17521379418@163.com> Date: Fri, 16 Aug 2019 11:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=A0=E5=BF=83=E5=A6=82=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git_cs/settings.py | 2 +- git_cs/urls.py | 2 +- templates/index.html | 2 +- templates/zhangxinru.html | 10 ++++++++++ zhangxinru/__init__.py | 0 zhangxinru/admin.py | 3 +++ zhangxinru/apps.py | 5 +++++ zhangxinru/migrations/__init__.py | 0 zhangxinru/models.py | 3 +++ zhangxinru/tests.py | 3 +++ zhangxinru/urls.py | 7 +++++++ zhangxinru/views.py | 5 +++++ 12 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 templates/zhangxinru.html create mode 100644 zhangxinru/__init__.py create mode 100644 zhangxinru/admin.py create mode 100644 zhangxinru/apps.py create mode 100644 zhangxinru/migrations/__init__.py create mode 100644 zhangxinru/models.py create mode 100644 zhangxinru/tests.py create mode 100644 zhangxinru/urls.py create mode 100644 zhangxinru/views.py diff --git a/git_cs/settings.py b/git_cs/settings.py index d22c7fb..ab66771 100644 --- a/git_cs/settings.py +++ b/git_cs/settings.py @@ -85,7 +85,7 @@ INSTALLED_APPS = [ - + 'zhangxinru', 'zhanyashuai', diff --git a/git_cs/urls.py b/git_cs/urls.py index 9591a2b..97d8fc6 100644 --- a/git_cs/urls.py +++ b/git_cs/urls.py @@ -39,7 +39,7 @@ urlpatterns = [ # path('zhanghao/',include('zhanghao.urls')), - + path('zhangxinru/', include('zhangxinru.urls')), path('fxy/',include('fxy.urls')), diff --git a/templates/index.html b/templates/index.html index 7002920..6d702c0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -85,7 +85,7 @@
  • 杜森
  • -
  • +
  • 张心如
  • diff --git a/templates/zhangxinru.html b/templates/zhangxinru.html new file mode 100644 index 0000000..a976aed --- /dev/null +++ b/templates/zhangxinru.html @@ -0,0 +1,10 @@ + + + + + Title + + +

    zhangxinru

    + + \ No newline at end of file diff --git a/zhangxinru/__init__.py b/zhangxinru/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/zhangxinru/admin.py b/zhangxinru/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/zhangxinru/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/zhangxinru/apps.py b/zhangxinru/apps.py new file mode 100644 index 0000000..98967ee --- /dev/null +++ b/zhangxinru/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class ZhangxinruConfig(AppConfig): + name = 'zhangxinru' diff --git a/zhangxinru/migrations/__init__.py b/zhangxinru/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/zhangxinru/models.py b/zhangxinru/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/zhangxinru/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/zhangxinru/tests.py b/zhangxinru/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/zhangxinru/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/zhangxinru/urls.py b/zhangxinru/urls.py new file mode 100644 index 0000000..31999a6 --- /dev/null +++ b/zhangxinru/urls.py @@ -0,0 +1,7 @@ +from django.urls import path, include +from . import views +app_name='zhangxinru' + +urlpatterns = [ + path('zhangxinru/',views.zhangxinru,name='zhangxinru') +] \ No newline at end of file diff --git a/zhangxinru/views.py b/zhangxinru/views.py new file mode 100644 index 0000000..6c5dc73 --- /dev/null +++ b/zhangxinru/views.py @@ -0,0 +1,5 @@ +from django.shortcuts import render + +# Create your views here. +def zhangxinru(request): + return render(request,'zhangxinru.html') -- Gitee