python web 简单问题 新手
利用 django 已经配置好网站
http://127.0.0.1:8000/
但根据教程修改了urls.py
改为
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.pyfrom django.http import HttpResponsedef index(request): return HttpResponse("Hello, Django.")