全部博文(362)
分类: Python/Ruby
2010-01-06 20:50:15
from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^testit/', include('newtest.apps.foo.urls.foo')), (r'^$', 'myproj.helloworld.index'), (r'^add/$', 'myproj.add.index'), # Uncomment this for admin: # (r'^admin/', include('django.contrib.admin.urls')), )
3、重启apache服务器
4、 浏览察看结果
结果如下: