Python 为什么不是';django 1.4管理界面中是否显示此模块?

Python 为什么不是';django 1.4管理界面中是否显示此模块?,python,django,Python,Django,目录结构 tutorial/tutorials turotial/tutorial 教程/settings.py INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # Uncommen

目录结构

tutorial/tutorials
turotial/tutorial
教程/settings.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',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
#'domains'
'tutorials'    
)
教程/admin.py

from tutorials.models import Tutorial
from django.contrib import admin

admin.site.register(Tutorial)
# Create your views here.
教程/models.py

from django.db import models

class Tutorial(models.Model):
    name = models.CharField(max_length=200)
    url = models.CharField(max_length=200)

    def __unicode__(self):
        return self.name

class User(models.Model):
    name = models.CharField(max_length=200)

    def __unicode__(self):
        return self.name

class Country(models.Model):
    name = models.CharField(max_length=200)

    def __unicode__(self):
        return self.name

您可能在“已安装的应用”设置中没有此应用的条目。

有几件事可以帮助您找到问题:

  • 您的URL.py中是否有
    admin.autodiscover()
  • 你运行过syncdb吗
  • 您是否尝试打开
    manage.py shell
    并导入模型以查看是否存在错误

我用设置更新了问题,是否设置在教程目录而不是教程目录中?您可能已经尝试过了,但是否重新启动了Web服务器?