@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
@@ -0,0 +1,5 @@
+from django.apps import AppConfig
+class ContactappConfig(AppConfig):
+ name = 'contactApp'
+from django.db import models
+# Create your models here.
+from django.test import TestCase
+# Create your tests here.
@@ -0,0 +1,9 @@
+from django.urls import path
+from . import views
+app_name = 'contactApp'
+urlpatterns = [
+ path('contact/', views.contact, name='contact'), # 欢迎咨询
+ path('recruit/', views.recruit, name='recruit'), # 加入恒达
+]
@@ -0,0 +1,13 @@
+from django.shortcuts import render
+from django.shortcuts import HttpResponse
+# Create your views here.
+def contact(request):
+ html = '<html><body>欢迎咨询</body></html>'
+ return HttpResponse(html)
+def recruit(request):
+ html = '<html><body>加入恒达</body></html>'