Django:urls.py第10行中的语法错误

时间:2015-04-26 12:05:20

标签: python django

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'),
)

这里有什么遗漏给我错误?

1 个答案:

答案 0 :(得分:1)

你有两行缺少近括号。