13 changed files with 26 additions and 3 deletions
@ -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> |
||||
@ -0,0 +1,3 @@ |
|||||
|
from django.contrib import admin |
||||
|
|
||||
|
# Register your models here. |
||||
@ -0,0 +1,5 @@ |
|||||
|
from django.apps import AppConfig |
||||
|
|
||||
|
|
||||
|
class DemoConfig(AppConfig): |
||||
|
name = 'demo' |
||||
@ -0,0 +1,3 @@ |
|||||
|
from django.db import models |
||||
|
|
||||
|
# Create your models here. |
||||
@ -0,0 +1,3 @@ |
|||||
|
from django.test import TestCase |
||||
|
|
||||
|
# Create your tests here. |
||||
@ -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…
Reference in new issue