3
장고 앱을 올바르게 설정하여 원활하게 실행 시켰습니다. 내가 관리 패널을 사용하려면 갔을 때 그러나, 나는이 라인의 주석에 404 오류가 발생장고와 함께 admin을 활성화 할 때
Using the URLconf defined in cms.urls, Django tried these URL patterns, in this order:
1. ^admin/
The current URL, , didn't match any of these.
내가 할 수있는 내 사이트에 액세스하려고하면
url(r'^admin/', include(admin.site.urls))
을,이를 받았다 이 오류를 해결하는 방법을 파악하지 못했습니다. 장고 경험이있는 사람이 해결책이 있습니까? 감사!
편집 :
from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'cms.views.home', name='home'),
# url(r'^cms/', include('cms.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/', include(admin.site.urls)),
)
현재 시점에서 전체 URL 파일이 어떻게 생겼는지 보입니다. 어느 URL에 접속 했습니까? 'yourdomain','yourdomain /'또는'yourdomain/admin'? – okm
안녕하세요, 전체 urls.py를 수정본에 게시했습니다. mydomain.com에 가면 mydomain.com/admin으로 가면 오류가 발생합니다. 500 내부 서버 오류가 발생합니다. –
'django.contrib.admin '이 (가)'INSTALLED_APPS'에' settings.py' –