私はPythonのデフォルトの開発httpサーバーを使用していますが、正常に動作します。エラー、現在のURLは、「http://127.0.0.1:8000 MY software version:django 1.4 python 2.6.6」の後、これらのいずれにも一致しませんでした
私のurls.pyファイル:
from django.conf.urls import patterns, include, url
#from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'djproject.views.home', name='home'),
# url(r'^djproject/', include('djproject.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# url(r'^admin/', admin.site.urls),
url(r'^admin/', admin.site.urls),
)
エラー:
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Using the URLconf defined in djproject.urls, Django tried these URL patterns, in this order:
^admin/
The current URL, , didn't match any of these.