37,719
社区成员
发帖
与我相关
我的任务
分享
urlpatterns = patterns('',
# Example:
# (r'^mysite/', include('mysite.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^$', 'mysite.helloworld.index'),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
)
#!/usr/bin/env python
#Filename helloword.py
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, Django.")