파이썬 기본 개발 http 서버를 사용하고 있습니다. 오류는, 현재의 URL은 "http://127.0.0.1:8000 MY 소프트웨어 버전 이후에 이들의 일치하지 않았다 장고 1.4 파이썬 2.6.6파이썬 기본 개발 http 서버, 오류, 현재 URL을 (를) 사용하여 이들 중 어느 것과도 일치하지 않습니다.
내 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.
thx 작동합니다. 예, 저는 그것에 새로운 것입니다. 지금 튜토리얼 part02를 읽고 있습니다. –