У меня проблемы с администратором Django.
после syncdb, результат:
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.
Что это значит?
В любом случае, когда я захожу на панель администратора сайта http://www.example.com/admin/,, я получаю это сообщение:
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 содержит:
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)),
)