Ver código fonte

# feat:初始化service

yht 3 semanas atrás
pai
commit
df02ed3107

+ 0 - 0
pythonweb/serviceApp/__init__.py


+ 3 - 0
pythonweb/serviceApp/admin.py

@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.

+ 5 - 0
pythonweb/serviceApp/apps.py

@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+
+
+class ServiceappConfig(AppConfig):
+    name = 'serviceApp'

+ 0 - 0
pythonweb/serviceApp/migrations/__init__.py


+ 3 - 0
pythonweb/serviceApp/models.py

@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.

+ 3 - 0
pythonweb/serviceApp/tests.py

@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.

+ 9 - 0
pythonweb/serviceApp/urls.py

@@ -0,0 +1,9 @@
+from django.urls import path
+from . import views
+
+app_name = 'serviceApp'
+
+urlpatterns = [
+    path('download/', views.download, name='download'),  # 资料下载
+    path('platform/', views.platform, name='platform'),  # 人脸识别开放平台
+]

+ 13 - 0
pythonweb/serviceApp/views.py

@@ -0,0 +1,13 @@
+from django.shortcuts import render
+from django.shortcuts import HttpResponse
+
+
+# Create your views here.
+def download(request):
+    html = '<html><body>资料下载</body></html>'
+    return HttpResponse(html)
+
+
+def platform(request):
+    html = '<html><body>人脸识别开放平台</body></html>'
+    return HttpResponse(html)