Django admin DoesNotExist à /admin/

J'ai quelques problèmes avec Django admin.

après syncdb, le résultat est:

  Creating tables ...
  Installing custom SQL ...
  Installing indexes ...
  No fixtures found.

Qu'est-ce que cela signifie?

De toute façon, lorsque je visite le site panneau d'admin http://www.example.com/admin/, je reçois ce message:

DoesNotExist at /admin/
Site matching query does not exist.

setting.py contient:

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 contient:

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)),
)
  • utilisez simplement from django.conf.urls.defaults import *et from django.conf import settings dans votre urls.py fichier et vérifier
  • grâce Harshith J. V. Mais ne change rien
  • vous pouvez voir le résultat pour syncdb contient pas de création de la table pour l'admin !!!