Compare commits

...

3 Commits
master ... dev

Author SHA1 Message Date
majiahui@haimaqingfan.com b5bb3d2639 针灸预约挂号系统首次提交 2 years ago
majiahui@haimaqingfan.com b6d77929dd 针灸预约挂号系统首次提交 2 years ago
majiahui@haimaqingfan.com c5db4cd698 针灸预约挂号系统首次提交 2 years ago
  1. 2
      .idea/acupuncture_registered_system.iml
  2. 2
      .idea/misc.xml
  3. 1
      acupuncture_registered_system/settings.py
  4. 3
      acupuncture_registered_system/urls.py
  5. 0
      db.sqlite3
  6. 0
      demo/__init__.py
  7. 3
      demo/admin.py
  8. 5
      demo/apps.py
  9. 0
      demo/migrations/__init__.py
  10. 3
      demo/models.py
  11. 3
      demo/tests.py
  12. 6
      demo/urls.py
  13. 7
      demo/views.py

2
.idea/acupuncture_registered_system.iml

@ -14,7 +14,7 @@
</component> </component>
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" /> <orderEntry type="jdk" jdkName="Python 3.8 (django)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
<component name="TemplatesService"> <component name="TemplatesService">

2
.idea/misc.xml

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 (django)" project-jdk-type="Python SDK" />
</project> </project>

1
acupuncture_registered_system/settings.py

@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'demo'
] ]
MIDDLEWARE = [ MIDDLEWARE = [

3
acupuncture_registered_system/urls.py

@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('', include('demo.urls')),
] ]

0
db.sqlite3

0
demo/__init__.py

3
demo/admin.py

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

5
demo/apps.py

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

0
demo/migrations/__init__.py

3
demo/models.py

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

3
demo/tests.py

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

6
demo/urls.py

@ -0,0 +1,6 @@
from django.urls import path, include
from . import views
urlpatterns = [
path('', views.hello, name=''),
]

7
demo/views.py

@ -0,0 +1,7 @@
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseForbidden
# Create your views here.
def hello(request):
# 如果用户通过POST提交,通过request.POST获取提交数据
return HttpResponseForbidden("hello")
Loading…
Cancel
Save