【发布时间】:2017-06-21 22:13:48
【问题描述】:
TypeError: view must be a callable or a list/tuple in the case of include().
网址
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^$',"newhomaa.views.home", name='home'),
url(r'^admin/', include(admin.site.urls)),
观看次数
from django.shortcuts import render
def home(request):
return render(request,"home.html",{})
INSTALLED_APPS
= [
'newhomaa',
我需要解决我的问题
【问题讨论】:
-
我知道但我不知道他想要什么