장고 관리자에게 몇 가지 문제가 있습니다.Django admin DoesNotExist at/admin/
syncdb 후, 그 결과는 다음과 같습니다
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.
이 무엇을 의미합니까?
DoesNotExist at /admin/
Site matching query does not exist.
setting.py 포함 :
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
)
ur.py 포함 : 나는 웹 사이트 관리자 패널 http://www.example.com/admin/를 방문 할 때 어쨌든
, 나는이 메시지가 나타납니다
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'^$', 'rshd.views.home', name='home'),
# url(r'^rshd/', include('rshd.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)),
)
'urls.py' 파일에서'django.conf.urls.defaults 가져 오기 * '와'django.conf 가져 오기 설정'을 사용하고 Harshith JV에게 –
감사합니다.하지만 아무 것도 변경하지 않습니다. –
볼 수 있습니다. syncdb에 대한 결과는 admin 용 테이블을 생성하지 않습니다 !!! –