from django.conf.urls import patterns, url
from testesonline import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^fat_controller$', views.fat_controller, name='index_no_model',
url(r'^with_model$', views.model_controller, name='model_controller',
url(r'^MVC$', views.MVC_way, name='MVC_way'),
)
这里有什么遗漏给我错误?
答案 0 :(得分:1)
你有两行缺少近括号。