标签:python函数 无法 定义 pytho clu 配置 django odi %s
#coding:utf-8
from django.http import HttpResponse
def index(request):
return HttpResponse("index")
def detail(request,id):
return HttpResponse("detail %s" % id)
url(r‘^‘, include(‘booktest.urls‘)),
from django.conf.urls import url
from . import views
urlpatterns = [
url(r‘^$‘, views.index),
url(r‘^([0-9]+)/$‘, views.detail),
]
标签:python函数 无法 定义 pytho clu 配置 django odi %s
原文地址:https://www.cnblogs.com/joshuazc/p/9533103.html